Library of Assembled Shared Sources
|
2D Line Segment More...
#include <line_segment_2d.h>
Public Member Functions | |
const TPoint | point (TParam t) const |
Return point on ray by it's parameter. | |
const TValue | t (const TPoint &point) const |
Return parameter of projection of iPoint on line segment. | |
const TVector | vector () const |
Return vector from tail to head. | |
const TValue | length () const |
Return length of line segment. | |
Related Symbols | |
(Note that these are not member symbols.) | |
template<typename T, class PPa, class PPb> | |
Result | intersect (const LineSegment2D< T, PPa > &a, const LineSegment2D< T, PPb > &b, T &tA, T &tB) |
intersection of two line segments | |
2D Line Segment
Definition at line 74 of file line_segment_2d.h.
const LineSegment2D< T, PP >::TPoint lass::prim::LineSegment2D< T, PP >::point | ( | TParam | t | ) | const |
Return point on ray by it's parameter.
Definition at line 116 of file line_segment_2d.inl.
References point(), t(), and vector().
Referenced by lass::prim::Line2D< T, EquationPolicy, NormalizingPolicy >::intersect(), point(), and t().
const LineSegment2D< T, PP >::TValue lass::prim::LineSegment2D< T, PP >::t | ( | const TPoint & | point | ) | const |
Return parameter of projection of iPoint on line segment.
Definition at line 129 of file line_segment_2d.inl.
References point(), t(), and vector().
Referenced by intersect(), point(), and t().
|
intersection of two line segments
a | [in] line segment A |
b | [in] line segment B |
aT | [out] parameter of intersection point on line segment A |
bT | [out] parameter of intersection point on line segment B |
Definition at line 208 of file line_segment_2d.inl.