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: 15.0.2.11458
Syntax
C#
public static double DistanceAlong(
	Vector3 point,
	Vector3 origin,
	Vector3 vector
)

Parameters

point
Type: Microsoft.DirectXVector3
Point to test.
origin
Type: Microsoft.DirectXVector3
Origin.
vector
Type: Microsoft.DirectXVector3
Direction.

Return Value

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