IpeLine::IpeLine | ( | ) | [inline, explicit] |
Create default line (x-axis).
Construct a line from p with direction dir.
Asserts unit length of dir.
Construct a line through two points.
double IpeLine::Side | ( | const IpeVector & | p | ) | const |
Result is > 0, = 0, < 0 if point lies to the left, on, to the right.
IpeVector IpeLine::Normal | ( | ) | const [inline] |
Return a normal vector pointing to the left of the directed line.
double IpeLine::Distance | ( | const IpeVector & | v | ) | const |
Returns distance between line and v.
Does this line intersect line? If so, computes intersection point.
Orthogonally project point v onto the line.
IpeVector IpeLine::Dir | ( | ) | const [inline] |
Return direction of line.
Point on the line.