Math::SquaredDistancePointToLine
Defined in: C4Computation.h
Calculates the squared distance from a point to a line.
Prototype
float SquaredDistancePointToLine(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 SquaredDistancePointToLine function returns the squared 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::SquaredDistanceLineToLine
Math::DistancePointToLine
Math::DistanceLineToLine
|