Calc::SquaredDistancePointToLine
Defined in:
Calculates the squared distance from a point to a line.
C4Computation.hPrototype
float SquaredDistancePointToLine(const Point3D& q, const Point3D& p, const Vector3D& v);
Parameters
q |
The point q. |
p |
The origin p 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 p + tv given by the p and v parameters.
See Also
