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 (Vector2, Vector2, Vector2)
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
Vector2
SnapTo
(
Vector2
p
,
Vector2
v1
,
Vector2
v2
)
Parameters
p
Type:
Microsoft.DirectX
Vector2
Value to test
v1
Type:
Microsoft.DirectX
Vector2
Lower bound
v2
Type:
Microsoft.DirectX
Vector2
Upper bound
Return Value
Type:
Vector2
Closest value
See Also
Reference
Util Class
SnapTo Overload
Demo3D.Common Namespace
© Emulate3D Ltd 2016
Send comments on this topic to
support@demo3d.com