"L. Spiro Engine"
|
A 3D line and the math that loves it. More...
#include <LSMLine3.h>
Public Member Functions | |
LSE_INLINE LSE_CALLCTOR | CLine3 (const CVector3 &_vStart, const CVector3 &_vEnd) |
LSE_INLINE LSE_CALLCTOR | CLine3 (const CLine3 &_lLine) |
LSE_INLINE CVector3 LSE_FCALL | ClosestPointOnLineToPoint (const CVector3 &_vPoint, LSREAL &_fT) const |
Public Attributes | |
CVector3 | p |
CVector3 | q |
A 3D line and the math that loves it.
Class CLine3 Description: A 3D line stored as 2 points on the line.
LSE_INLINE CVector3 LSE_FCALL lsm::CLine3::ClosestPointOnLineToPoint | ( | const CVector3 & | _vPoint, |
LSREAL & | _fT | ||
) | const |
Get the closest point on the line to the given point. Also returns t for the position of that point along this line.
_vPoint | Point to test against this line. |
_fT | Holds the returned time value of the returned point. |
The starting point.
The ending point.