Math::DistancePointToLine
Defined in: C4Computation.h
Calculates the distance from a point to a line.
Prototype
float DistancePointToLine(const Point3D& q, const Point3D& s, const Vector3D& v);
Parameters
q |
The point Q.
|
s |
The origin S of the line.
|
v |
The direction V of the line.
|
Description
The DistancePointToLine function returns the perpendicular distance from the point Q given by the q parameter to the line S + t · V given by the s and v parameters.
See Also
Math::DistanceLineToLine
Math::SquaredDistancePointToLine
Math::SquaredDistanceLineToLine
|