Click or drag to resize

UtilSnapTo Method (Vector3, Vector3, Vector3)

Return the point on the line going through [v1,v2] that is closest to the point 'p'

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static Vector3 SnapTo(
	Vector3 p,
	Vector3 v1,
	Vector3 v2
)

Parameters

p
Type: Microsoft.DirectXVector3
Value to test
v1
Type: Microsoft.DirectXVector3
Lower bound
v2
Type: Microsoft.DirectXVector3
Upper bound

Return Value

Type: Vector3
Closest value
See Also