Click or drag to resize

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
Syntax
public static double Sanitize(
	double sharpness,
	double invalidInputResult
)

Parameters

sharpness
Type: SystemDouble
The value to sanitize.
invalidInputResult
Type: SystemDouble
The value to return when sharpness is not valid.

Return Value

Type: Double
A usable sharpness value, or invalidInputResult if sharpness is not valid.
See Also