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