Struct XMUInt2
A 2D vector where each component is an unsigned integer.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DXMath
Assembly: JeremyAnsel.DirectX.DXMath.dll
Syntax
public struct XMUInt2 : IEquatable<XMUInt2>
Constructors
| Edit this page View SourceXMUInt2(uint, uint)
Initializes a new instance of the XMUInt2 struct.
Declaration
public XMUInt2(uint x, uint y)
Parameters
Type | Name | Description |
---|---|---|
uint | x | The x-coordinate of the vector. |
uint | y | The y-coordinate of the vector. |
XMUInt2(uint[])
Initializes a new instance of the XMUInt2 struct.
Declaration
public XMUInt2(uint[] array)
Parameters
Type | Name | Description |
---|---|---|
uint[] | array | The components of the vector. |
Properties
| Edit this page View SourceX
Gets or sets the x-coordinate of the vector.
Declaration
public uint X { get; set; }
Property Value
Type | Description |
---|---|
uint |
Y
Gets or sets the y-coordinate of the vector.
Declaration
public uint Y { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(XMUInt2)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(XMUInt2 other)
Parameters
Type | Name | Description |
---|---|---|
XMUInt2 | 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 SourceFromVector(XMVector)
Declaration
public static XMUInt2 FromVector(XMVector value)
Parameters
Type | Name | Description |
---|---|---|
XMVector | value | A XMVector. |
Returns
Type | Description |
---|---|
XMUInt2 | A XMUInt2. |
GetHashCode()
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 SourceToVector()
Declaration
public XMVector ToVector()
Returns
Type | Description |
---|---|
XMVector | A XMVector. |
Operators
| Edit this page View Sourceoperator ==(XMUInt2, XMUInt2)
Compares two XMUInt2 objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(XMUInt2 left, XMUInt2 right)
Parameters
Type | Name | Description |
---|---|---|
XMUInt2 | left | The left XMUInt2 to compare. |
XMUInt2 | right | The right XMUInt2 to compare. |
Returns
Type | Description |
---|---|
bool |
implicit operator XMVector(XMUInt2)
Declaration
public static implicit operator XMVector(XMUInt2 value)
Parameters
Type | Name | Description |
---|---|---|
XMUInt2 | value | A XMUInt2. |
Returns
Type | Description |
---|---|
XMVector | A XMVector. |
implicit operator XMUInt2(XMVector)
Declaration
public static implicit operator XMUInt2(XMVector value)
Parameters
Type | Name | Description |
---|---|---|
XMVector | value | A XMVector. |
Returns
Type | Description |
---|---|
XMUInt2 | A XMUInt2. |
operator !=(XMUInt2, XMUInt2)
Compares two XMUInt2 objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(XMUInt2 left, XMUInt2 right)
Parameters
Type | Name | Description |
---|---|---|
XMUInt2 | left | The left XMUInt2 to compare. |
XMUInt2 | right | The right XMUInt2 to compare. |
Returns
Type | Description |
---|---|
bool |