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