|
Library of Assembled Shared Sources
|
3D Line Segment More...
#include <line_segment_3d.h>

Public Member Functions | |
| const TPoint | point (TParam iT) const |
| Return point on ray by it's parameter. | |
| const TValue | t (const TPoint &iPoint) 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. | |
| const TValue | distance (const TPoint &iPoint) const |
| Return distance of point to line segment. | |
| const TValue | squaredDistance (const TPoint &iPoint) const |
| Return squared distance of a point to line segment. | |
| const TValue | closestsPoint (const TPoint &iPoint, T &oT) const |
| t is parameter of closests point and return squared distance of a point to the line segment. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<typename T, class EPPlane, class NPPlane, class PPRay> | |
| Result | intersect (const Plane3D< T, EPPlane, NPPlane > &plane, const LineSegment3D< T, PPRay > &lineSegment, T &t) |
| Find the intersection of a plane and line segment by their parameter t on the ray. | |
3D Line Segment
Definition at line 74 of file line_segment_3d.h.
| const LineSegment3D< T, PP >::TPoint lass::prim::LineSegment3D< T, PP >::point | ( | TParam | iT | ) | const |
Return point on ray by it's parameter.
Definition at line 129 of file line_segment_3d.inl.
References point(), and vector().
Referenced by closestsPoint(), lass::prim::SimplePolygon3D< U, PlaneEquationPolicy, PlaneNormalizingPolicy >::intersect(), point(), and squaredDistance().
| const LineSegment3D< T, PP >::TValue lass::prim::LineSegment3D< T, PP >::t | ( | const TPoint & | iPoint | ) | const |
Return parameter of projection of iPoint on line segment.
Definition at line 142 of file line_segment_3d.inl.
Referenced by closestsPoint(), squaredDistance(), and t().
|
Find the intersection of a plane and line segment by their parameter t on the ray.
| plane | [in] the plane |
| lineSegment | [in] the line segment |
| t | [out] the parameter of the intersection point > tMin. |
| tMin | [in] the minimum t that may be returned as valid intersection. |
Definition at line 73 of file line_segment_3d_plane_3d.h.