M_Rhino_Geometry_Curve_IsLinear_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.IsLinear Method (Double)

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

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public bool IsLinear(
	double tolerance
)

VB

Public Function IsLinear ( 
	tolerance As Double
) As Boolean

Parameters

 

tolerance
Type: System.Double
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.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Curve Class
IsLinear Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️