Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
2minutenoodle
2minutenoodle's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Getting absolute vector position
[4 Replies]
21-Jun-2012 12:35 AM
Forum:
Programming Questions
Hello,
I'm still learning how to draw in processing, so this may be a very basic question.
I want to draw a line between two points.
The first point is relative to another randome point which which is generated inside a rotate/translate.
e.g.
pushMatrix();
translate(randomX, randomY);
rotate(randomAngle);
...
PVector point1 = new PVector(randomX+200, randomY+200);
popMatrix();
The second known point is absolute to my applet frame.
How can I get the absolute position of point1 to draw a line between the two??
Thanks!!
«Prev
Next »
Moderate user : 2minutenoodle
Forum