12 #ifndef __ICESEGMENT_H__ 13 #define __ICESEGMENT_H__ 45 inline_ void ComputePoint(
Point& pt,
float t)
const { pt = mP0 + t * (mP1 - mP0); }
48 float SquareDistance(
const Point& point,
float* t=
null)
const;
55 #endif // __ICESEGMENT_H__ inline_ void ComputeDirection(Point &dir) const
#define null
our own NULL pointer
inline_ ~Segment()
Destructor.
inline_ Point ComputeDirection() const
inline_ void SetOriginDirection(const Point &origin, const Point &direction)
inline_ float ComputeLength() const
inline_ Segment(const Segment &seg)
Copy constructor.
inline_ const Point & GetOrigin() const
inline_ Segment(const Point &p0, const Point &p1)
Constructor.
inline_ Segment()
Constructor.
Point mP0
Start of segment.
inline_ float ComputeSquareLength() const
inline_ float Distance(const Point &point, float *t=null) const