Determines if a point is on an ellipse centered at the origin.
public static bool PointIsOnEllipse(double fSemimajorAxis, double fSemiminorAxis, double fPointX,
double fPointY, int precision)
parameter | description |
---|---|
fSemimajorAxis | Semimajoraxis of the ellipse. |
fSemiminorAxis | Semiminoraxis of the ellipse. |
fPointX | X coordinate of the point. |
fPointY | Y coordinate of the point. |
precision | The rounding precision in decimal places to use while comparing calculations. |
True, if the point is on the ellipse.