BezierCurve2DApproximateLength Method (Double, Double, Int32) |
Approximates the length of the bezier curve between from and
to by subdividing the curve interval into the specified number of
linear segments and summing the Euclidean distances.
Namespace:
Demo3D.Common
Assembly:
Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntaxpublic double ApproximateLength(
double from,
double to,
int segments
)
Parameters
- from
- Type: SystemDouble
The starting fractional distance along the curve. - to
- Type: SystemDouble
The ending fractional distance along the curve. - segments
- Type: SystemInt32
The number of segments over which to approximate the length of the curve interval.
Return Value
Type:
DoubleThe approximate length of the curve interval.
See Also