Struct Point
Represents the x- and y-coordinates of a point.
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public struct Point
Constructors
| Improve this Doc View SourcePoint(Int32, Int32)
Initializes a new Point using the given coordinates.
Declaration
public Point(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | The x-coordinate of this Point. |
Int32 | y | The y-coordinate of this Point. |
Point(Single, Single)
Initializes a new Point using the given coordinates.
Declaration
public Point(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-coordinate of this Point. |
Single | y | The y-coordinate of this Point. |
Fields
| Improve this Doc View SourceX
The x-coordinate of this Point.
Declaration
public float X
Field Value
Type | Description |
---|---|
Single |
Y
The y-coordinate of this Point.
Declaration
public float Y
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 Point structure to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this Point. |
Overrides
Operators
| Improve this Doc View SourceEquality(Point, Point)
Determines whether two specified instances are equal.
Declaration
public static bool operator ==(Point left, Point right)
Parameters
Type | Name | Description |
---|---|---|
Point | left | The first object to compare. |
Point | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Implicit(Point to RawVector2)
Converts a Point structure to a SharpDX RawVector2.
Declaration
public static implicit operator RawVector2(Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | A Point structure. |
Returns
Type | Description |
---|---|
SharpDX.Mathematics.Interop.RawVector2 |
Implicit(RawVector2 to Point)
Converts a SharpDX RawVector2 structure to a Point structure.
Declaration
public static implicit operator Point(RawVector2 vector)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Mathematics.Interop.RawVector2 | vector | A SharpDX RawVector2. |
Returns
Type | Description |
---|---|
Point |
Inequality(Point, Point)
Determines whether two specified instances are not equal.
Declaration
public static bool operator !=(Point left, Point right)
Parameters
Type | Name | Description |
---|---|---|
Point | left | The first object to compare. |
Point | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |