Struct XMU565
A 3D vector with x- and z- components represented as 5-bit unsigned integer values, and the y- component as a 6-bit unsigned integer value.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DXMath.PackedVector
Assembly: JeremyAnsel.DirectX.DXMath.dll
Syntax
public struct XMU565 : IEquatable<XMU565>
Constructors
| Edit this page View SourceXMU565(byte, byte, byte)
Initializes a new instance of the XMU565 struct.
Declaration
public XMU565(byte x, byte y, byte z)
Parameters
Type | Name | Description |
---|---|---|
byte | x | The x component. |
byte | y | The y component. |
byte | z | The z component. |
XMU565(byte[])
Initializes a new instance of the XMU565 struct.
Declaration
public XMU565(byte[] array)
Parameters
Type | Name | Description |
---|---|---|
byte[] | array | The components of the vector. |
XMU565(float, float, float)
Initializes a new instance of the XMU565 struct.
Declaration
public XMU565(float x, float y, float z)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x component. |
float | y | The y component. |
float | z | The z component. |
XMU565(float[])
Initializes a new instance of the XMU565 struct.
Declaration
public XMU565(float[] array)
Parameters
Type | Name | Description |
---|---|---|
float[] | array | The components of the vector. |
XMU565(ushort)
Initializes a new instance of the XMU565 struct.
Declaration
public XMU565(ushort packed)
Parameters
Type | Name | Description |
---|---|---|
ushort | packed | A packed value representing the vector. |
Properties
| Edit this page View SourceX
Gets or sets the x component.
Declaration
public byte X { get; set; }
Property Value
Type | Description |
---|---|
byte |
Y
Gets or sets the y component.
Declaration
public byte Y { get; set; }
Property Value
Type | Description |
---|---|
byte |
Z
Gets or sets the z component.
Declaration
public byte Z { get; set; }
Property Value
Type | Description |
---|---|
byte |
Methods
| Edit this page View SourceEquals(XMU565)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(XMU565 other)
Parameters
Type | Name | Description |
---|---|---|
XMU565 | 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 SourceFromPacked(ushort)
Converts a packed value to a XMU565.
Declaration
public static XMU565 FromPacked(ushort value)
Parameters
Type | Name | Description |
---|---|---|
ushort | value | A packed value. |
Returns
Type | Description |
---|---|
XMU565 | A XMU565. |
FromVector(XMVector)
Declaration
public static XMU565 FromVector(XMVector value)
Parameters
Type | Name | Description |
---|---|---|
XMVector | value | A XMVector. |
Returns
Type | Description |
---|---|
XMU565 | A XMU565. |
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 SourceToPacked()
Converts a XMU565 to a packed value.
Declaration
public ushort ToPacked()
Returns
Type | Description |
---|---|
ushort | A packed value. |
ToVector()
Declaration
public XMVector ToVector()
Returns
Type | Description |
---|---|
XMVector | A XMVector. |
Operators
| Edit this page View Sourceoperator ==(XMU565, XMU565)
Compares two XMU565 objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(XMU565 left, XMU565 right)
Parameters
Type | Name | Description |
---|---|---|
XMU565 | left | The left XMU565 to compare. |
XMU565 | right | The right XMU565 to compare. |
Returns
Type | Description |
---|---|
bool |
implicit operator XMVector(XMU565)
Declaration
public static implicit operator XMVector(XMU565 value)
Parameters
Type | Name | Description |
---|---|---|
XMU565 | value | A XMU565. |
Returns
Type | Description |
---|---|
XMVector | A XMVector. |
implicit operator ushort(XMU565)
Converts a XMU565 to a packed value.
Declaration
public static implicit operator ushort(XMU565 value)
Parameters
Type | Name | Description |
---|---|---|
XMU565 | value | A XMU565. |
Returns
Type | Description |
---|---|
ushort | A packed value. |
implicit operator XMU565(XMVector)
Declaration
public static implicit operator XMU565(XMVector value)
Parameters
Type | Name | Description |
---|---|---|
XMVector | value | A XMVector. |
Returns
Type | Description |
---|---|
XMU565 | A XMU565. |
implicit operator XMU565(ushort)
Converts a packed value to a XMU565.
Declaration
public static implicit operator XMU565(ushort value)
Parameters
Type | Name | Description |
---|---|---|
ushort | value | A packed value. |
Returns
Type | Description |
---|---|
XMU565 | A XMU565. |
operator !=(XMU565, XMU565)
Compares two XMU565 objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(XMU565 left, XMU565 right)
Parameters
Type | Name | Description |
---|---|---|
XMU565 | left | The left XMU565 to compare. |
XMU565 | right | The right XMU565 to compare. |
Returns
Type | Description |
---|---|
bool |