UtilSnapTo(Vector3, Vector3, Vector3) Method |
Return the point on the line going through [v1,v2] that is closest to the point 'p'
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic 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
Vector3Closest value
See Also