Click or drag to resize

UtilDistanceAlong Method

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.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static double DistanceAlong(
	Vector3 point,
	Vector3 origin,
	Vector3 vector
)

Parameters

point  Vector3
Point to test.
origin  Vector3
Origin.
vector  Vector3
Direction.

Return Value

Double
Distance from origin.
Remarks
If vector is Zero, then this will always return zero.
See Also