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