Struct DxgiPoint
Defines the x- and y- coordinates of a point.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiPoint : IEquatable<DxgiPoint>
Constructors
| Edit this page View SourceDxgiPoint(int, int)
Initializes a new instance of the DxgiPoint struct.
Declaration
public DxgiPoint(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
int | x | The x-coordinate of the point. |
int | y | The y-coordinate of the point. |
Properties
| Edit this page View SourceX
Gets or sets the x-coordinate of the point.
Declaration
public int X { get; set; }
Property Value
Type | Description |
---|---|
int |
Y
Gets or sets the y-coordinate of the point.
Declaration
public int Y { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(DxgiPoint)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DxgiPoint other)
Parameters
Type | Name | Description |
---|---|---|
DxgiPoint | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DxgiPoint, DxgiPoint)
Compares two DxgiPoint objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DxgiPoint left, DxgiPoint right)
Parameters
Type | Name | Description |
---|---|---|
DxgiPoint | left | The left DxgiPoint to compare. |
DxgiPoint | right | The right DxgiPoint to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DxgiPoint, DxgiPoint)
Compares two DxgiPoint objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DxgiPoint left, DxgiPoint right)
Parameters
Type | Name | Description |
---|---|---|
DxgiPoint | left | The left DxgiPoint to compare. |
DxgiPoint | right | The right DxgiPoint to compare. |
Returns
Type | Description |
---|---|
bool |