#include <IceSegment.h>
Public Member Functions | |
inline_ Point | ComputeDirection () const |
inline_ void | ComputeDirection (Point &dir) const |
inline_ float | ComputeLength () const |
inline_ void | ComputePoint (Point &pt, float t) const |
inline_ float | ComputeSquareLength () const |
inline_ float | Distance (const Point &point, float *t=null) const |
const inline_ Point & | GetOrigin () const |
inline_ | Segment () |
Constructor. More... | |
inline_ | Segment (const Point &p0, const Point &p1) |
Constructor. More... | |
inline_ | Segment (const Segment &seg) |
Copy constructor. More... | |
inline_ void | SetOriginDirection (const Point &origin, const Point &direction) |
float | SquareDistance (const Point &point, float *t=null) const |
inline_ | ~Segment () |
Destructor. More... | |
Public Attributes | |
Point | mP0 |
Start of segment. More... | |
Point | mP1 |
End of segment. More... | |
Segment class. A segment is defined by S(t) = mP0 * (1 - t) + mP1 * t, with 0 <= t <= 1 Alternatively, a segment is S(t) = Origin + t * Direction for 0 <= t <= 1. Direction is not necessarily unit length. The end points are Origin = mP0 and Origin + Direction = mP1.
Definition at line 15 of file IceSegment.h.
|
inline |
Constructor.
Definition at line 19 of file IceSegment.h.
Constructor.
Definition at line 21 of file IceSegment.h.
Copy constructor.
Definition at line 23 of file IceSegment.h.
|
inline |
Destructor.
Definition at line 25 of file IceSegment.h.
Definition at line 28 of file IceSegment.h.
Definition at line 29 of file IceSegment.h.
|
inline |
Definition at line 30 of file IceSegment.h.
Computes a point on the segment
pt | [out] point on segment |
t | [in] point's parameter [t=0 => pt = mP0, t=1 => pt = mP1] |
Definition at line 46 of file IceSegment.h.
|
inline |
Definition at line 31 of file IceSegment.h.
Definition at line 49 of file IceSegment.h.
Definition at line 27 of file IceSegment.h.
Definition at line 33 of file IceSegment.h.
Definition at line 29 of file IceSegment.cpp.
Point Segment::mP0 |
Start of segment.
Definition at line 51 of file IceSegment.h.
Point Segment::mP1 |
End of segment.
Definition at line 52 of file IceSegment.h.