Struct Circle
Represents the dimension of a circle.
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public struct Circle
Constructors
| Improve this Doc View SourceCircle(Point, Int32)
Initializes a new Circle by using the given location and radius.
Declaration
public Circle(Point location, int radius)
Parameters
Type | Name | Description |
---|---|---|
Point | location | A Point structure including the x- and y-coordinates of the center of a circle. |
Int32 | radius | The radius of a circle. |
Circle(Point, Single)
Initializes a new Circle by using the given location and radius.
Declaration
public Circle(Point location, float radius)
Parameters
Type | Name | Description |
---|---|---|
Point | location | A Point structure including the x- and y-coordinates of the center of a circle. |
Single | radius | The radius of a circle. |
Circle(Int32, Int32, Int32)
Initializes a new Circle by using the given location and radius.
Declaration
public Circle(int x, int y, int radius)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | The x-coordinate of the center of a circle. |
Int32 | y | The y-coordinate of the center of a circle. |
Int32 | radius | The radius of a circle. |
Circle(Single, Single, Single)
Initializes a new Circle by using the given location and radius.
Declaration
public Circle(float x, float y, float radius)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-coordinate of the center of a circle. |
Single | y | The y-coordinate of the center of a circle. |
Single | radius | The radius of a circle. |
Fields
| Improve this Doc View SourceLocation
The position of this Circle.
Declaration
public Point Location
Field Value
Type | Description |
---|---|
Point |
Radius
The Radius of this Circle.
Declaration
public float Radius
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 Circle structure to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this Circle. |
Overrides
Operators
| Improve this Doc View SourceEquality(Circle, Circle)
Determines whether two specified instances are equal.
Declaration
public static bool operator ==(Circle left, Circle right)
Parameters
Type | Name | Description |
---|---|---|
Circle | left | The first object to compare. |
Circle | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Implicit(Circle to Ellipse)
Converts this Circle to a SharpDX ellipse.
Declaration
public static implicit operator Ellipse(Circle circle)
Parameters
Type | Name | Description |
---|---|---|
Circle | circle | A Circle structure. |
Returns
Type | Description |
---|---|
SharpDX.Direct2D1.Ellipse |
Inequality(Circle, Circle)
Determines whether two specified instances are not equal.
Declaration
public static bool operator !=(Circle left, Circle right)
Parameters
Type | Name | Description |
---|---|---|
Circle | left | The first object to compare. |
Circle | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |