Method Split
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Split(double)
Cuts the spline in two at a normalised parameter.
public GeoSpline3[] Split(double parameter)
Parameters
parameterdoubleThe share of the domain to cut at, above 0 and below 1.
Returns
- GeoSpline3[]
The part before the parameter and the part after it, over the two parts of the domain.
Remarks
Exact, as SplitAtKnot(double) is: the share is turned into the value of the knots it comes to and the spline is cut there. A share so near an end that its knot value is the end's, to a double, is refused.
Exceptions
- ArgumentOutOfRangeException
Thrown when the parameter is not above 0 and below 1, or comes to an end of the domain.
- ArgumentException
Thrown when a part would be a spline that stands still: all its control points one point.