Method GetParameterAtDistance
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetParameterAtDistance(GeoEllipse2, double)
Gets the normalized parameter at a length measured along the rim of an ellipse from the end of its major axis, counter-clockwise.
public static double GetParameterAtDistance(GeoEllipse2 ellipse, double distance)
Parameters
ellipseGeoEllipse2The ellipse.
distancedoubleThe length along the rim. It does not wrap: a length and a half round gives 1.5, and a negative length a negative parameter, as a circle's does.
Returns
- double
The parameter, uniform in the eccentric angle; 0 for an ellipse with no rim to measure along.
Remarks
The whole quarter turns are taken out first; within the quarter left, Newton's method on the length, kept inside a bracket it halves whenever a step would leave it, finds the angle to the last digit.