Ipelib
|
A directed line. More...
#include <ipegeo.h>
A directed line.
ipe::Line::Line | ( | ) | [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 Line::side | ( | const Vector & | p | ) | const |
Result is > 0, = 0, < 0 if point lies to the left, on, to the right.
Vector ipe::Line::normal | ( | ) | const [inline] |
Return a normal vector pointing to the left of the directed line.
double Line::distance | ( | const Vector & | v | ) | const |
Returns distance between line and v.
Does this line intersect line? If so, computes intersection point.
Vector ipe::Line::dir | ( | ) | const [inline] |
Return direction of line.
Point on the line.