M_Rhino_Geometry_Curve_GetLength_3 - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.GetLength Method (Double, Interval)

Get the length of a sub-section of the curve.

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

Syntax

C#

public double GetLength(
	double fractionalTolerance,
	Interval subdomain
)

VB

Public Function GetLength ( 
	fractionalTolerance As Double,
	subdomain As Interval
) As Double

Parameters

 

fractionalTolerance
Type: System.Double
Desired fractional precision. fabs(("exact" length from start to t) - arc_length)/arc_length <= fractionalTolerance.
subdomain
Type: Rhino.Geometry.Interval
The calculation is performed on the specified sub-domain of the curve (must be non-decreasing).

Return Value

Type: Double
The length of the sub-curve on success, or zero on failure.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Curve Class
GetLength Overload
Rhino.Geometry Namespace

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