Object representing an infinite line in 2 dimensional space. More...
Public Member Functions | |
Line (Point2Dd normal, double d) | |
Create a line object. More... | |
Line (Point2Dd pt1, Point2Dd pt2) | |
Create a line object. More... | |
void | Set (Point2Dd pt1, Point2Dd pt2) |
Modify this line so that it traverses through two points. More... | |
Properties | |
Point2Dd | Normal [get, set] |
Normal vector of the line. When setting a different normal vector, it will automatically normalized to a length of 1.0. | |
double | Distance [get, set] |
Distance of the line from the origin. | |
Object representing an infinite line in 2 dimensional space.
Create a line object.
normal | normal vector of the line |
d | distance between the line and the origin |
Create a line object.
pt1 | first point the line is supposed to cross |
pt2 | second point the line is supposed to cross |