Method GetDistanceAtParameter
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetDistanceAtParameter(GeoEllipse2, double)
Gets the length along the rim of an ellipse from the end of its major axis, counter-clockwise, to a normalized parameter.
public static double GetDistanceAtParameter(GeoEllipse2 ellipse, double parameter)
Parameters
ellipseGeoEllipse2The ellipse.
parameterdoubleThe parameter, uniform in the eccentric angle. It does not wrap: 1.25 is a whole turn and a quarter, and a negative parameter gives a negative length, as a circle's does.
Returns
- double
The true length along the rim. On an ellipse 300 by 100, 0.25 is a quarter of 1 336.489, 334.122, exactly a quarter of GetLength(GeoEllipse2).
Remarks
The whole quarter turns are taken out first, each adding exactly a quarter of the perimeter; what is left is an incomplete elliptic integral of the second kind, worked out by Carlson's R_F and R_D to the last digit.