- Main Page
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

# cSegment3D Struct Reference

cSegment3D represents a line segment with a start and an end More...

`#include <CVector3d.h>`

List of all members.

## Public Member Functions
double | distanceSquaredToPoint (const cVector3d &a_point, double &a_t, cVector3d *a_closestPoint=0)

## Detailed Description

cSegment3D represents a line segment with a start and an end

## Member Function Documentation

double cSegment3D::distanceSquaredToPoint | ( | const cVector3d & | a_point,
|  | double & | a_t,
|  | cVector3d * | a_closestPoint = `0` |
| ) |  |  |

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

The documentation for this struct was generated from the following files:

- chai3d/src/math/CVector3d.h
- chai3d/src/math/CVector3d.cpp