Demo3D 2016 API Documentation
Demo3D 2016 API Documentation
Demo3D Namespaces
Demo3D.Common Namespaces
Demo3D.Common
Util Class
Util Methods
SnapTo Method
SnapTo Method (Double, Double, Double)
SnapTo Method (Int32, Int32, Int32)
SnapTo Method (Single, Single, Single)
SnapTo Method (Vector2, Vector2, Vector2)
SnapTo Method (Vector3, Vector3, Vector3)
Util
SnapTo 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: 10.0.7983.28765
Syntax
C#
Copy
public
static
Vector3
SnapTo
(
Vector3
p
,
Vector3
v1
,
Vector3
v2
)
Parameters
p
Type:
Microsoft.DirectX
Vector3
Value to test
v1
Type:
Microsoft.DirectX
Vector3
Lower bound
v2
Type:
Microsoft.DirectX
Vector3
Upper bound
Return Value
Type:
Vector3
Closest value
See Also
Reference
Util Class
SnapTo Overload
Demo3D.Common Namespace
© Emulate3D Ltd 2016
Send comments on this topic to
support@demo3d.com