"L. Spiro Engine"
Public Member Functions | Public Attributes

lsm::CLine3 Class Reference

A 3D line and the math that loves it. More...

#include <LSMLine3.h>

List of all members.

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

Detailed Description

A 3D line and the math that loves it.

Class CLine3 Description: A 3D line stored as 2 points on the line.


Member Function Documentation

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.

Parameters:
_vPointPoint to test against this line.
_fTHolds the returned time value of the returned point.
Returns:
Returns the closest point on the line to the given point and the time (t) for the position of the point along the line.

Member Data Documentation

The starting point.

The ending point.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator