UtilSnapTo Method (Double, Double, Double) |
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 double SnapTo(
double p,
double v1,
double v2
)
Parameters
- p
- Type: SystemDouble
Value to test - v1
- Type: SystemDouble
Lower bound - v2
- Type: SystemDouble
Upper bound
Return Value
Type:
DoubleClosest value
See Also