MathUtility.EllipseLineIntercepts method

Gets the points of a line, if any, that intercept an ellipse centered at the origin.

public static IEnumerable<ValueTuple<double, double>> EllipseLineIntercepts(double fSemimajorAxis, 
    double fSemiminorAxis, double fLineSlope, double fLineYIntercept)
parameter description
fSemimajorAxis Semimajoraxis of the ellipse.
fSemiminorAxis Semiminoraxis of the ellipse.
fLineSlope Slope of the line.
fLineYIntercept Y-intercept of the line.

Return Value

Points of the line that intercept the ellipse.

See Also