"L. Spiro Engine"
|
A 3D line segment stored as 2 points. More...
#include <LSMLineSeg3Base.h>
Public Member Functions | |
LSE_INLINE LSE_CALLCTOR | CLineSeg3Base (const CLineSeg3Base< _tType, _tVec3Type > &_lsbLine) |
LSE_INLINE LSE_CALLCTOR | CLineSeg3Base (const _tVec3Type &_vStart, const _tVec3Type &_vEnd) |
_tVec3Type LSE_FCALL | ClosestPointOnLineSegToPoint (const _tVec3Type &_vPoint, _tType &_tT) const |
_tType LSE_FCALL | SqDistToPoint (const _tVec3Type &_vPoint) const |
_tType LSE_FCALL | ClosestPointOnLineSegToLineSeg (const CLineSeg3Base< _tType, _tVec3Type > &_lsbLine, _tType &_tS, _tType &_tT, _tType &_tRealS, _tType &_tRealT, _tVec3Type &_v0, _tVec3Type &_v1) const |
_tType LSE_FCALL | Len () const |
_tType LSE_FCALL | LenSq () const |
Public Attributes | |
_tVec3Type | p |
_tVec3Type | q |
A 3D line segment stored as 2 points.
Class CLineSeg3Base Description: A 3D line segment stored as 2 points.
_tType LSE_FCALL lsm::CLineSeg3Base< _tType, _tVec3Type >::ClosestPointOnLineSegToLineSeg | ( | const CLineSeg3Base< _tType, _tVec3Type > & | _lsbLine, |
_tType & | _tS, | ||
_tType & | _tT, | ||
_tType & | _tRealS, | ||
_tType & | _tRealT, | ||
_tVec3Type & | _v0, | ||
_tVec3Type & | _v1 | ||
) | const [inline] |
Get the squared distance between this segment and another segment. Also returns t for the position of that point along both segments.
_lsbLine | Line segment to test against this line segment. |
_tS | Holds the returned time value of the point along this segment. |
_tT | Holds the returned time value of the point along the given segment. |
_tRealS | Holds the unclamped time of intersection on this line segment. |
_tRealT | Holds the unclamped time of intersection on the second line segment. |
_v0 | Holds the closest point on this line segment to the given line segment. |
_v1 | Holds the closest point on the given line segment to this line segment. |
_tVec3Type LSE_FCALL lsm::CLineSeg3Base< _tType, _tVec3Type >::ClosestPointOnLineSegToPoint | ( | const _tVec3Type & | _vPoint, |
_tType & | _tT | ||
) | const [inline] |
Get the closest point on the line segment to the given point. Also returns t for the position of that point along this line.
_vPoint | Point to test against this line segment. |
_tT | Holds the returned time value of the returned point. |
_tType LSE_FCALL lsm::CLineSeg3Base< _tType, _tVec3Type >::Len | ( | ) | const [inline] |
Get the length of the line segment.
_tType LSE_FCALL lsm::CLineSeg3Base< _tType, _tVec3Type >::LenSq | ( | ) | const [inline] |
Get the squared length of the line segment.
_tType LSE_FCALL lsm::CLineSeg3Base< _tType, _tVec3Type >::SqDistToPoint | ( | const _tVec3Type & | _vPoint | ) | const [inline] |
Returns the squared distance between this segment and the given point.
_vPoint | The point to which the squared distance from this segment is to be calculated. |
_tVec3Type lsm::CLineSeg3Base< _tType, _tVec3Type >::p |
Starting point.
_tVec3Type lsm::CLineSeg3Base< _tType, _tVec3Type >::q |
Ending point.