ilqgames
A new real-time solver for large-scale differential games.
Public Member Functions | List of all members
ilqgames::LineSegment2 Class Reference

Public Member Functions

 LineSegment2 (const Point2 &point1, const Point2 &point2)
 
float Length () const
 
const Point2 & FirstPoint () const
 
const Point2 & SecondPoint () const
 
const Point2 & UnitDirection () const
 
float Heading () const
 
bool Side (const Point2 &query) const
 
Point2 ClosestPoint (const Point2 &query, bool *is_endpoint=nullptr, float *signed_squared_distance=nullptr) const
 

Detailed Description

Definition at line 52 of file line_segment2.h.


The documentation for this class was generated from the following files: