DistanceToLine Data Member Function

Calculates the distance from 'this' to a line which passes through two vectors 'A' and 'B'.

Prototype

double DistanceToLine( Vec A, Vec B )

Parameters

Parameter Type Parameter Name Documentation
<Vec>AA point which lies on the line to calculate distance from.
<Vec>BA second point which lies on the line to calculate distance from.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.