CardinalSplineToBezierSegmentConverterShortenBezierSegmentsByDistanceFromEndPoints Method |
Shortens a sequence of Bezier segments by removing parts near the start and end points.
Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static PointD2D[]? ShortenBezierSegmentsByDistanceFromEndPoints(
PointD2D[] points,
double distanceFromStart,
double distanceFromEnd
)
Parameters
- points PointD2D
- Bezier control points following the 1 + 3k convention.
- distanceFromStart Double
- Euclidean distance to shorten from the start.
- distanceFromEnd Double
- Euclidean distance to shorten from the end.
Return Value
PointD2D
The shortened sequence of Bezier control points, or
null when shortening removes the entire curve.
See Also