Demo3D 2016 API Documentation
Demo3D 2016 API Documentation
Demo3D Namespaces
Demo3D.Common Namespaces
Demo3D.Common
Util Class
Util Methods
BoundedSnapTo Method
BoundedSnapTo Method (Vector2, Vector2, Vector2)
BoundedSnapTo Method (Vector3, Vector3, Vector3)
Util
BoundedSnapTo Method (Vector2, Vector2, Vector2)
Return the point in the line segment [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
BoundedSnapTo
(
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
BoundedSnapTo Overload
Demo3D.Common Namespace
© Emulate3D Ltd 2016
Send comments on this topic to
support@demo3d.com