Struct EllipseF
Represents an ellipse that is composed of a single-precision floating-point center point and radius.
Implements
Namespace: X10D.Drawing
Assembly: X10D.dll
Syntax
public struct EllipseF : IEquatable<EllipseF>
Constructors
| Improve this Doc View SourceEllipseF(PointF, SizeF)
Initializes a new instance of the Ellipse struct.
Declaration
public EllipseF(PointF center, SizeF radius)
Parameters
Type | Name | Description |
---|---|---|
PointF | center | The center point of the ellipse. |
SizeF | radius | The radius of the ellipse. |
EllipseF(PointF, Vector2)
Initializes a new instance of the Ellipse struct.
Declaration
public EllipseF(PointF center, Vector2 radius)
Parameters
Type | Name | Description |
---|---|---|
PointF | center | The center point of the ellipse. |
Vector2 | radius | The radius of the ellipse. |
EllipseF(Single, Single, Single, Single)
Initializes a new instance of the EllipseF struct.
Declaration
public EllipseF(float centerX, float centerY, float horizontalRadius, float verticalRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Single | centerX | The X coordinate of the center point. |
System.Single | centerY | The Y coordinate of the center point. |
System.Single | horizontalRadius | The horizontal radius of the ellipse. |
System.Single | verticalRadius | The vertical radius of the ellipse. |
EllipseF(Vector2, Vector2)
Initializes a new instance of the Ellipse struct.
Declaration
public EllipseF(Vector2 center, Vector2 radius)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | center | The center point of the ellipse. |
Vector2 | radius | The radius of the ellipse. |
Fields
| Improve this Doc View SourceEllipseF
The unit ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 1.
Declaration
public static readonly EllipseF
Field Value
Type | Description |
---|---|
EllipseF |
EllipseF
The unit ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 1.
Declaration
public static readonly EllipseF
Field Value
Type | Description |
---|---|
EllipseF |
EllipseF
The unit ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 1.
Declaration
public static readonly EllipseF
Field Value
Type | Description |
---|---|
EllipseF |
Empty
The empty ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 0.
Declaration
public static readonly EllipseF Empty
Field Value
Type | Description |
---|---|
EllipseF |
Unit
The unit ellipse. That is, an ellipse whose center point is (0, 0) and whose two radii are 1.
Declaration
public static readonly EllipseF Unit
Field Value
Type | Description |
---|---|
EllipseF |
Properties
| Improve this Doc View SourceApproximateCircumference
Gets the approximate circumference of the ellipse.
Declaration
public float ApproximateCircumference { get; }
Property Value
Type | Description |
---|---|
System.Single | The approximate circumference of the ellipse, calculated as
|
Area
Gets the area of the ellipse.
Declaration
public float Area { get; }
Property Value
Type | Description |
---|---|
System.Single | The area of the ellipse, calculated as |
Center
Gets the center point of the ellipse.
Declaration
public PointF Center { get; }
Property Value
Type | Description |
---|---|
PointF | The center point. |
HorizontalRadius
Gets the horizontal radius of the ellipse.
Declaration
public float HorizontalRadius { get; }
Property Value
Type | Description |
---|---|
System.Single | The horizontal radius. |
Radius
Gets the radius of the ellipse.
Declaration
public SizeF Radius { get; }
Property Value
Type | Description |
---|---|
SizeF | The radius. |
VerticalRadius
Gets the vertical radius of the ellipse.
Declaration
public float VerticalRadius { get; }
Property Value
Type | Description |
---|---|
System.Single | The vertical radius. |
Methods
| Improve this Doc View SourceEquals(Nullable<Object>)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(EllipseF)
Returns a value indicating whether this instance and another instance are equal.
Declaration
public bool Equals(EllipseF other)
Parameters
Type | Name | Description |
---|---|---|
EllipseF | other | The instance with which to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if this instance and |
FromCircle(Circle)
Declaration
public static EllipseF FromCircle(in Circle circle)
Parameters
Type | Name | Description |
---|---|---|
Circle | circle | The circle to convert. |
Returns
Type | Description |
---|---|
EllipseF | The converted ellipse. |
FromCircleF(CircleF)
Declaration
public static EllipseF FromCircleF(in CircleF circle)
Parameters
Type | Name | Description |
---|---|---|
CircleF | circle | The circle to convert. |
Returns
Type | Description |
---|---|
EllipseF | The converted ellipse. |
FromEllipse(Ellipse)
Declaration
public static EllipseF FromEllipse(in Ellipse ellipse)
Parameters
Type | Name | Description |
---|---|---|
Ellipse | ellipse | The ellipse to convert. |
Returns
Type | Description |
---|---|
EllipseF | The converted ellipse. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Operators
| Improve this Doc View SourceEquality(EllipseF, EllipseF)
Returns a value indicating whether two instances of EllipseF are equal.
Declaration
public static bool operator ==(in EllipseF left, in EllipseF right)
Parameters
Type | Name | Description |
---|---|---|
EllipseF | left | The first instance. |
EllipseF | right | The second instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Implicit(Circle to EllipseF)
Declaration
public static implicit operator EllipseF(in Circle circle)
Parameters
Type | Name | Description |
---|---|---|
Circle | circle | The circle to convert. |
Returns
Type | Description |
---|---|
EllipseF | The converted ellipse. |
Implicit(CircleF to EllipseF)
Declaration
public static implicit operator EllipseF(in CircleF circle)
Parameters
Type | Name | Description |
---|---|---|
CircleF | circle | The circle to convert. |
Returns
Type | Description |
---|---|
EllipseF | The converted ellipse. |
Implicit(Ellipse to EllipseF)
Declaration
public static implicit operator EllipseF(in Ellipse ellipse)
Parameters
Type | Name | Description |
---|---|---|
Ellipse | ellipse | The ellipse to convert. |
Returns
Type | Description |
---|---|
EllipseF | The converted ellipse. |
Inequality(EllipseF, EllipseF)
Returns a value indicating whether two instances of EllipseF are not equal.
Declaration
public static bool operator !=(in EllipseF left, in EllipseF right)
Parameters
Type | Name | Description |
---|---|---|
EllipseF | left | The first instance. |
EllipseF | right | The second instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if |