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 (Vector3, Vector3, Vector3)
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
Vector3
BoundedSnapTo
(
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
BoundedSnapTo Overload
Demo3D.Common Namespace
© Emulate3D Ltd 2016
Send comments on this topic to
support@demo3d.com