UtilSnapTo Method (Single, Single, Single) |
Return the value between [v1,v2] that is closest to 'p'
Namespace:
Demo3D.Common
Assembly:
Demo3D.Common (in Demo3D.Common.dll) Version: 18.04.00
Syntaxpublic static float SnapTo(
float p,
float v1,
float v2
)
Parameters
- p
- Type: SystemSingle
Value to test - v1
- Type: SystemSingle
Lower bound - v2
- Type: SystemSingle
Upper bound
Return Value
Type:
SingleClosest value
See Also