public

Inheritance Graph

graph BT
	_Segment
	_Segment --> _LineBase
	click _Segment "classGeometry_1_1__Segment"
	click _LineBase "classGeometry_1_1__LineBase"

Description

Segment defined by two pointsfromPointandtoPoint. Points p on the segment fulfill the equation p =fromPoint+**(toPoint-fromPoint).normalize * t for values of t in the interval [0, (toPoint-fromPoint).length].

Note: the direction vector is automatically normalized in the constructor.

Public Functions

   
   
  _Segment(const vec_t & fromPoint, const vec_t & toPoint)
   
  _Segment()
   
value_t length() const
   
const vec_t & getFirstPoint() const
   
vec_t getSecondPoint() const
   
void setFirstPoint(const vec_t & p)
   
void setSecondPoint(const vec_t & p)

Documentation

function
Geometry::_Segment::_Segment

public inline
     
     
_Segment( const vec_t & fromPoint,
  const vec_t & toPoint
)    

Defined in Geometry/Line.h:321


function
Geometry::_Segment::_Segment

public inline
   
   
_Segment( )

Defined in Geometry/Line.h:328


function
Geometry::_Segment::length

public const inline
   
   
value_t length( ) const

Defined in Geometry/Line.h:330


function
Geometry::_Segment::getFirstPoint

public const inline
   
   
const vec_t & getFirstPoint( ) const

Defined in Geometry/Line.h:334


function
Geometry::_Segment::getSecondPoint

public const inline
   
   
vec_t getSecondPoint( ) const

Defined in Geometry/Line.h:337


function
Geometry::_Segment::setFirstPoint

public inline
     
     
void setFirstPoint( const vec_t & p )

Defined in Geometry/Line.h:341


function
Geometry::_Segment::setSecondPoint

public inline
     
     
void setSecondPoint( const vec_t & p )

Defined in Geometry/Line.h:344