Method Reverse
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Reverse()
Gets the spline running the other way, from its end to its start.
public GeoSpline2 Reverse()
Returns
- GeoSpline2
The spline with its control points and weights in the opposite order and its knots mirrored about the middle of the domain, so that it has the same domain: the point at a knot value is the point of the original at the knot value as far from the other end.
Remarks
Each distinct knot is mirrored once, so knots that were equal stay equal and knots that were apart stay apart: where rounding would put two mirrored knots on one number the later is moved one unit in the last place on, and one that would land on the end of the domain one back. A mirrored knot is rounded to the last place of the domain's ends, which moves the curve by the speed times that.