Click or drag to resize

UtilSnapTo(Vector3, Vector3, Vector3) Method

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: 19.01.00
Syntax
C#
public static Vector3 SnapTo(
	Vector3 p,
	Vector3 v1,
	Vector3 v2
)

Parameters

p  Vector3
Value to test
v1  Vector3
Lower bound
v2  Vector3
Upper bound

Return Value

Vector3
Closest value
See Also