Posted 18 November 2009 - 06:30 PM
Posted 18 November 2009 - 06:40 PM
It's not possible. Think abou it: what does "above" or "below" mean given we have three dimensions? You need just one more primitive (i.e. point) to fix a plane and then you can place additional lines. Non-zero offset of both the points will indeed result in a parallel line, although the concept of below or above will still not exist.
Posted 18 November 2009 - 06:43 PM
You already know a line is defined by a point and direction. To create another parallel line you keep the same direction and just move the point. So, to create a second line 5 units above the first, you would add 5 times your up vector to the point.
Posted 18 November 2009 - 08:09 PM
Posted 19 November 2009 - 01:22 AM
LINE = A + t * D
From the Line we can get
SP = Start Point
EP = End Point
UPVECTOR = SP x EP
What do I do now after getting the UPVECTOR. To get 5 times UPVECTOR * 5 ? Then what do I do next ???
Posted 19 November 2009 - 01:30 AM
Then just add it to A, the origin point of the line.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users