SubDEdgeSharpnessSanitize Method (Double, Double) |
Verifies that sharpness is between 0.0 and
MaximumValue, and snaps it
to an integer when it is within
Tolerance of one.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.36
Syntaxpublic static double Sanitize(
double sharpness,
double invalidInputResult
)
Public Shared Function Sanitize (
sharpness As Double,
invalidInputResult As Double
) As Double
Parameters
- sharpness
- Type: SystemDouble
The value to sanitize. - invalidInputResult
- Type: SystemDouble
The value to return when sharpness is not valid.
Return Value
Type:
DoubleA usable sharpness value, or invalidInputResult if sharpness is not valid.
See Also