CurveLengthParameter Method (Double, Double, Double, Interval) |
Gets the parameter along the curve which coincides with a given length along the curve.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public bool LengthParameter(
double segmentLength,
out double t,
double fractionalTolerance,
Interval subdomain
)
Public Function LengthParameter (
segmentLength As Double,
<OutAttribute> ByRef t As Double,
fractionalTolerance As Double,
subdomain As Interval
) As Boolean
Parameters
- segmentLength
- Type: SystemDouble
Length of segment to measure. Must be less than or equal to the length of the sub-domain.
- t
- Type: SystemDouble
Parameter such that the length of the curve from the start of the sub-domain to t is s.
- fractionalTolerance
- Type: SystemDouble
Desired fractional precision.
fabs(("exact" length from start to t) - arc_length)/arc_length <= fractionalTolerance.
- subdomain
- Type: Rhino.GeometryInterval
The calculation is performed on the specified sub-domain of the curve rather than the whole curve.
Return Value
Type:
Booleantrue on success, false on failure.
See Also