Support Forum       G3D Web Page     
Public Member Functions | Static Public Member Functions | List of all members
G3D::LineSegment2D Class Reference

Public Member Functions

 LineSegment2D ()
 
Point2 closestPoint (const Point2 &Q) const
 
float distance (const Point2 &p) const
 
Point2 intersection (const LineSegment2D &other) const
 Returns the intersection of these segements (including testing endpoints), or Point2::inf() if they do not intersect. More...
 
float length () const
 
Point2 point (int i) const
 

Static Public Member Functions

static LineSegment2D fromTwoPoints (const Point2 &p0, const Vector2 &p1)
 

Constructor & Destructor Documentation

◆ LineSegment2D()

G3D::LineSegment2D::LineSegment2D ( )
inline

Member Function Documentation

◆ closestPoint()

Point2 G3D::LineSegment2D::closestPoint ( const Point2 Q) const

◆ distance()

float G3D::LineSegment2D::distance ( const Point2 p) const

◆ fromTwoPoints()

static LineSegment2D G3D::LineSegment2D::fromTwoPoints ( const Point2 p0,
const Vector2 p1 
)
static

◆ intersection()

Point2 G3D::LineSegment2D::intersection ( const LineSegment2D other) const

Returns the intersection of these segements (including testing endpoints), or Point2::inf() if they do not intersect.

◆ length()

float G3D::LineSegment2D::length ( ) const

◆ point()

Point2 G3D::LineSegment2D::point ( int  i) const

documentation generated on Wed Nov 24 2021 08:01:57 using doxygen 1.8.15