Return the signed distance of point from origin, with vector defining
the direction for positive distance.
[point,origin] should be parallel to [vector].
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static double DistanceAlong(
Vector3 point,
Vector3 origin,
Vector3 vector
)
Parameters
- point Vector3
- Point to test.
- origin Vector3
- Origin.
- vector Vector3
- Direction.
Return Value
DoubleDistance from
origin.
RemarksIf
vector is
Zero, then this will always return zero.
See Also