Constructor Ellipse
Ellipse(double, double, double, double)
Initializes a new ellipse from a center point and two radii.
public Ellipse(double centerX, double centerY, double radiusX, double radiusY)
Parameters
centerXdoubleX-coordinate of the center.
centerYdoubleY-coordinate of the center.
radiusXdoubleHorizontal radius. Must be greater than zero.
radiusYdoubleVertical radius. Must be greater than zero.
Exceptions
- ArgumentOutOfRangeException
Thrown if
radiusXorradiusYis not positive.