CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csSegment2 Class Reference
[Geometry utilities]

A 2D line segment. More...

#include <segment.h>

List of all members.

Public Methods

 csSegment2 (const csVector2 &s, const csVector2 &e)
 Make a new segment and initialize with the given values.

 csSegment2 ()
 Make a new uninitialized segment.

 ~csSegment2 ()
 Destructor.

void Set (const csVector2 &s, const csVector2 &e)
 Set segment to given values.

void SetStart (const csVector2 &s)
 Set the start of the segment.

void SetEnd (const csVector2 &e)
 Set the end of the segment.

const csVector2Start () const
 Get the start of the segment.

const csVector2End () const
 Get the end of the segment.

csVector2Start ()
 Get the start of the segment.

csVector2End ()
 Get the end of the segment.


Detailed Description

A 2D line segment.

Definition at line 36 of file segment.h.


Constructor & Destructor Documentation

csSegment2::csSegment2 const csVector2   s,
const csVector2   e
[inline]
 

Make a new segment and initialize with the given values.

Definition at line 46 of file segment.h.

csSegment2::csSegment2   [inline]
 

Make a new uninitialized segment.

Definition at line 48 of file segment.h.

csSegment2::~csSegment2   [inline]
 

Destructor.

Definition at line 50 of file segment.h.


Member Function Documentation

csVector2& csSegment2::End   [inline]
 

Get the end of the segment.

Definition at line 72 of file segment.h.

const csVector2& csSegment2::End   const [inline]
 

Get the end of the segment.

Definition at line 66 of file segment.h.

Referenced by csPoly2DEdges::AddEdge(), csIntersect2::Plane(), csIntersect2::PlaneNoTest(), csPlane2::Set(), and csMath2::WhichSide2D().

void csSegment2::Set const csVector2   s,
const csVector2   e
[inline]
 

Set segment to given values.

Definition at line 53 of file segment.h.

void csSegment2::SetEnd const csVector2   e [inline]
 

Set the end of the segment.

Definition at line 60 of file segment.h.

Referenced by csBox2::GetEdge().

void csSegment2::SetStart const csVector2   s [inline]
 

Set the start of the segment.

Definition at line 57 of file segment.h.

Referenced by csBox2::GetEdge().

csVector2& csSegment2::Start   [inline]
 

Get the start of the segment.

Definition at line 69 of file segment.h.

const csVector2& csSegment2::Start   const [inline]
 

Get the start of the segment.

Definition at line 63 of file segment.h.

Referenced by csPoly2DEdges::AddEdge(), csIntersect2::Plane(), csIntersect2::PlaneNoTest(), csPlane2::Set(), and csMath2::WhichSide2D().


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18