#include <CVector3d.h>
Public Member Functions | |
| cSegment3d (const cVector3d &a_start, const cVector3d &a_end) | |
| Constructor of cSegment3d. | |
| double | distanceSquaredToPoint (const cVector3d &a_point, double &a_t, cVector3d *a_closestPoint=0) |
| Returns the squared distance from this segment to a_point. | |
Public Attributes | |
| cVector3d | m_start |
| Start point of segment. | |
| cVector3d | m_end |
| End point of segment. | |
| double cSegment3d::distanceSquaredToPoint | ( | const cVector3d & | a_point, | |
| double & | a_t, | |||
| cVector3d * | a_closestPoint = 0 | |||
| ) |
Returns the squared distance from this segment to a_point.
Returns the squared distance from this segment to a_point and the position along the segment (from 0.0 to 1.0) of the closest point.
| a_point | Point to test. | |
| a_t | return value for the position along the segment. | |
| a_closestPoint | The closest point on this segment to the supplied point. |