![]() |
Public API Reference |
#include <segment.h>
Public Methods | |
csSegment2 (const csVector2 &s, const csVector2 &e) | |
Make a new segment and initialize with the given values. More... | |
csSegment2 () | |
Make a new uninitialized segment. More... | |
~csSegment2 () | |
Destructor. More... | |
void | Set (const csVector2 &s, const csVector2 &e) |
Set segment to given values. More... | |
void | SetStart (const csVector2 &s) |
Set the start of the segment. More... | |
void | SetEnd (const csVector2 &e) |
Set the end of the segment. More... | |
const csVector2 & | Start () const |
Get the start of the segment. More... | |
const csVector2 & | End () const |
Get the end of the segment. More... | |
csVector2 & | Start () |
Get the start of the segment. More... | |
csVector2 & | End () |
Get the end of the segment. More... |
Definition at line 34 of file segment.h.
|
Make a new segment and initialize with the given values.
|
|
Make a new uninitialized segment.
|
|
Destructor.
|
|
Get the end of the segment.
|
|
Get the end of the segment.
Definition at line 64 of file segment.h. Referenced by csPoly2DEdges::AddEdge, csIntersect2::PlaneNoTest, csPlane2::Set, and csMath2::WhichSide2D. |
|
Set segment to given values.
|
|
Set the end of the segment.
Definition at line 58 of file segment.h. Referenced by csBox2::GetEdge. |
|
Set the start of the segment.
Definition at line 55 of file segment.h. Referenced by csBox2::GetEdge. |
|
Get the start of the segment.
|
|
Get the start of the segment.
Definition at line 61 of file segment.h. Referenced by csPoly2DEdges::AddEdge, csIntersect2::PlaneNoTest, csPlane2::Set, and csMath2::WhichSide2D. |