Demo3D 2022 API Documentation
Demo3D 2022 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 (Int32, Int32, Int32)
Return the value between [v1,v2] that is closest to 'p'
Namespace:
Demo3D.Common
Assembly:
Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
Copy
public
static
int
SnapTo
(
int
p
,
int
v1
,
int
v2
)
Parameters
p
Type:
System
Int32
Value to test
v1
Type:
System
Int32
Lower bound
v2
Type:
System
Int32
Upper bound
Return Value
Type:
Int32
Closest value
See Also
Reference
Util Class
SnapTo Overload
Demo3D.Common Namespace
© Emulate3D Ltd. All rights reserved.
Send comments on this topic to
support@demo3d.com