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_ Point ComputeDirection() const
inline_ const Point & GetOrigin() const
#define null
our own NULL pointer
inline_ ~Segment()
Destructor.
inline_ void SetOriginDirection(const Point &origin, const Point &direction)
inline_ Segment(const Segment &seg)
Copy constructor.
inline_ Segment(const Point &p0, const Point &p1)
Constructor.
inline_ Segment()
Constructor.
inline_ void ComputeDirection(Point &dir) const
inline_ float ComputeLength() const
Point mP0
Start of segment.
inline_ float Distance(const Point &point, float *t=null) const
inline_ float ComputeSquareLength() const