71 float distance(
const Pos &p)
const;
76 float signedDistance(
const Pos &p)
const;
80 return distance(
Pos(p.
x,p.
y));
87 return signedDistance(
Pos(p.
x,p.
y));
95 PointPolar getAngleAndDistance()
const;
98 Pos getClosestPoint(
const Pos &p)
const;
undocument this line if you encounter any issues!
Definition: Any.h:37
#define ICLMath_API
Definition: CompatMacros.h:173
float y
y position of this point
Definition: Point32f.h:48
float signedDistance(const utils::Point32f &p) const
computes closest distance to given 2D point
Definition: StraightLine2D.h:86
FixedColVector< float, 2 > PointPolar
internal typedef
Definition: StraightLine2D.h:50
Pos o
2D offset vector
Definition: StraightLine2D.h:65
Pos v
2D direction vector
Definition: StraightLine2D.h:68
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
float x
x position of this point
Definition: Point32f.h:45
A straight line is parameterized in offset/direction form.
Definition: StraightLine2D.h:48
float distance(const utils::Point32f &p) const
computes closest distance to given 2D point
Definition: StraightLine2D.h:79
FixedColVector< float, 2 > Pos
internal typedef for 2D points
Definition: StraightLine2D.h:53