| Support Forum G3D Web Page |
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) |
|
inline |
| float G3D::LineSegment2D::distance | ( | const Point2 & | p | ) | const |
|
static |
| 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.
| float G3D::LineSegment2D::length | ( | ) | const |
| Point2 G3D::LineSegment2D::point | ( | int | i | ) | const |
1.8.15