|
IVT
|
Data structure for the representation of a 2D straight line. More...
#include <Structs.h>
Public Member Functions | |
| StraightLine2d () | |
| StraightLine2d (const Vec2d &point1, const Vec2d &point2) | |
| StraightLine2d (float angle, float c) | |
| StraightLine2d (const PointPair2d &pointPair) | |
Public Attributes | |
| Vec2d | point |
| An aribtrary point belonging to the straight line. More... | |
| Vec2d | directionVector |
| The normalized direction vector of the straight line. More... | |
| Vec2d | normalVector |
| The normalized normal vector of the straight line. More... | |
| float | c |
| 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.
|
inline |
|
inline |
| float StraightLine2d::c |
| Vec2d StraightLine2d::directionVector |
| Vec2d StraightLine2d::normalVector |
| Vec2d StraightLine2d::point |