Data structure for the representation of a 2D straight line. More...
|StraightLine2d (const Vec2d &point1, const Vec2d &point2)|
|StraightLine2d (float angle, float c)|
|StraightLine2d (const PointPair2d &pointPair)|
|An aribtrary point belonging to the straight line. More...|
|The normalized direction vector of the straight line. More...|
|The normalized normal vector of the straight line. More...|
|The negative scalar product of normalVector and point. More...|
Data structure for the representation of a 2D straight line.
The function PrimitivesDrawer::DrawLine draws a straight line, given its specification in this struct. Other functions (e.g. detectors) can use this struct as well.
The two independent straight line equations are:
where any satisfying one of these equations belongs to the straight line, = point, = directionVector, and = normalVector.