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