Struct Ellipse
Represents the dimension of an ellipse.
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public struct Ellipse
Constructors
| Improve this Doc View SourceEllipse(Point, Int32, Int32)
Initializes a new Ellipse using the given location and radius.
Declaration
public Ellipse(Point location, int radiusX, int radiusY)
Parameters
Type | Name | Description |
---|---|---|
Point | location | A Location structure including the center x- and y-coordinate of an ellipse. |
Int32 | radiusX | The radius on the x-axis of this ellipse. |
Int32 | radiusY | The radius on the y-axis of this ellipse. |
Ellipse(Point, Single, Single)
Initializes a new Ellipse using the given location and radius.
Declaration
public Ellipse(Point location, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
Point | location | A Location structure including the center x- and y-coordinate of an ellipse. |
Single | radiusX | The radius on the x-axis of this ellipse. |
Single | radiusY | The radius on the y-axis of this ellipse. |
Ellipse(Int32, Int32, Int32, Int32)
Initializes a new Ellipse using the given location and radius.
Declaration
public Ellipse(int x, int y, int radiusX, int radiusY)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | The center x-coordinate of an ellipse. |
Int32 | y | The center y-coordinate of an ellipse. |
Int32 | radiusX | The radius on the x-axis of this ellipse. |
Int32 | radiusY | The radius on the y-axis of this ellipse. |
Ellipse(Single, Single, Single, Single)
Initializes a new Ellipse using the given location and radius.
Declaration
public Ellipse(float x, float y, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The center x-coordinate of an ellipse. |
Single | y | The center y-coordinate of an ellipse. |
Single | radiusX | The radius on the x-axis of this ellipse. |
Single | radiusY | The radius on the y-axis of this ellipse. |
Fields
| Improve this Doc View SourceLocation
The position of this ellipse.
Declaration
public Point Location
Field Value
Type | Description |
---|---|
Point |
RadiusX
The radius on the x-axis of this ellipse.
Declaration
public float RadiusX
Field Value
Type | Description |
---|---|
Single |
RadiusY
The radius on the y-axis of this ellipse.
Declaration
public float RadiusY
Field Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceEquals(Object)
Returns a value indicating whether this instance and a specified Object represent the same type and value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Overrides
| Improve this Doc View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer hash code. |
Overrides
| Improve this Doc View SourceToString()
Converts the Ellipse structure to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this Ellipse. |
Overrides
Operators
| Improve this Doc View SourceEquality(Ellipse, Ellipse)
Determines whether two specified instances are equal.
Declaration
public static bool operator ==(Ellipse left, Ellipse right)
Parameters
Type | Name | Description |
---|---|---|
Ellipse | left | The first object to compare. |
Ellipse | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Implicit(Ellipse to Ellipse)
Converts an Ellipse to a SharpDX Ellipse.
Declaration
public static implicit operator Ellipse(Ellipse ellipse)
Parameters
Type | Name | Description |
---|---|---|
Ellipse | ellipse | An Ellipse structure. |
Returns
Type | Description |
---|---|
SharpDX.Direct2D1.Ellipse |
Inequality(Ellipse, Ellipse)
Determines whether two specified instances are not equal.
Declaration
public static bool operator !=(Ellipse left, Ellipse right)
Parameters
Type | Name | Description |
---|---|---|
Ellipse | left | The first object to compare. |
Ellipse | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |