Click or drag to resize

CurveIsLinear Method (Double)

Test a curve to see if it is linear to within the custom tolerance.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool IsLinear(
	double tolerance
)

Parameters

tolerance
Type: SystemDouble
Tolerance to use when checking linearity.

Return Value

Type: Boolean
true if the ends of the curve are farther than tolerance apart and the maximum distance from any point on the curve to the line segment connecting the curve ends is <= tolerance.
See Also