EllipseF

References
Adds an Ellipse type to the Eto.Drawing namespace.

Constructors

EllipseF

#
public EllipseF(PointF centre, float radiusX, float radiusY, float angle)
Create a roated ellipse.
centre (PointF)Centre of ellipse.
radiusX (float)X radius.
radiusY (float)Y radius.
angle (float)Rotation angle in degrees.

EllipseF

#
public EllipseF(PointF centre, float radiusX, float radiusY)
Create a horizontal ellipse.
centre (PointF)Centre of ellipse.
radiusX (float)X radius.
radiusY (float)Y radius.

Properties

Angle

#
public float Angle { get; set; }
Gets or sets the rotational angle of the ellipse (in degrees, clockwise).

Centre

#
public PointF Centre { get; set; }
Gets or sets the centre point of the ellipse.

Empty

#
public static EllipseF Empty { get; }
Returns an empty ellipse.

ImplicitEquation

#
public EllipseImplicitEquation ImplicitEquation { get; }
Gets the equation for the current circle.

IsEmpty

#
public bool IsEmpty { get; }
Gets whether this circle is empty, ie. has a radius of exactly zero.

IsUnset

#
public bool IsUnset { get; }
Gets whether this circle is unset, ie. whether any of its values are NaNs.

ParametericEquation

#
public EllipseParametricEquation ParametericEquation { get; }
Gets the equation for the current circle.

QuadXNegative

#
public PointF QuadXNegative { get; }
Gets the quad point along the ellipse negative X direction.

QuadXPositive

#
public PointF QuadXPositive { get; }
Gets the quad point along the ellipse positive X direction.

QuadYNegative

#
public PointF QuadYNegative { get; }
Gets the quad point along the ellipse negative Y direction.

QuadYPositive

#
public PointF QuadYPositive { get; }
Gets the quad point along the ellipse positive Y direction.

RadiusX

#
public float RadiusX { get; set; }
Gets or sets the x radius of the ellipse.

RadiusY

#
public float RadiusY { get; set; }
Gets or sets the y radius of the ellipse.

Unset

#
public static EllipseF Unset { get; }
Returns an unset ellipse.

Methods

BezierPoints

#
public PointF[][] BezierPoints()
Create an array of four bezier control-points, one for each quadrant.
Array containing four pointf arrays.

CompareTo

#
public int CompareTo(EllipseF other)
Compare this ellipse to another.
other (EllipseF)Ellipse to compare to.
Sort order.

Equals

#
public bool Equals(EllipseF other)
Compare one ellipse to another.
other (EllipseF)Ellipse to compare to.
True if ellipses are equal. Note that ellipses can have identical shape, yet be defined by different properties. This method checks field equality, not shape similarity.

ToPath

#
public GraphicsPath ToPath()
Create a graphics path containing this ellipse.
Graphics path.

ToPath

#
public GraphicsPath ToPath(float angle, float sweep)
Create a graphics path containing a polyline approximation of some subsection of this ellipse.
angle (float)Start angle (degrees, clockwise), although note we're talking parameterisation angles here.
sweep (float)Sweep angle (degrees, clockwise), although note we're talking parameterisation angles here.

ToString

#
public override string ToString()
Gets a string representation of this ellipse.
Description.