Class FloatR11G11B10
Packed vector, layout: R:11 bytes, G:11 bytes, B:10 bytes. The 3D vector is packed into 32 bits as follows: a 5-bit biased exponent and 6-bit mantissa for x component, a 5-bit biased exponent and 6-bit mantissa for y component, a 5-bit biased exponent and a 5-bit mantissa for z. The z component is stored in the most significant bits and the x component in the least significant bits. No sign bits so all partial-precision numbers are positive. (Z10Y11X11): [32] ZZZZZzzz zzzYYYYY yyyyyyXX XXXxxxxx [0]
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class FloatR11G11B10 : ValueType
Constructors
FloatR11G11B10(Float3)
Initializes a new instance of the FloatR11G11B10 structure.
Declaration
public FloatR11G11B10(Float3 value)
Parameters
Float3
value
The floating point value that should be stored in compressed format. |
FloatR11G11B10(Single, Single, Single)
Initializes a new instance of the FloatR11G11B10 structure.
Declaration
public FloatR11G11B10(float x, float y, float z)
Parameters
System.Single
x
The floating point value that should be stored in R component (11 bits format). |
System.Single
y
The floating point value that should be stored in G component (11 bits format). |
System.Single
z
The floating point value that should be stored in B component (10 bits format). |
Properties
RawValue
Gets or sets the raw 32 bit value used to back this vector.
Declaration
public uint RawValue { get; }
Property Value
System.UInt32
|
Methods
Equals(FloatR11G11B10)
Returns a value that indicates whether the current instance is equal to the specified object.
Declaration
public bool Equals(FloatR11G11B10 other)
Parameters
FloatR11G11B10
other
Object to make the comparison with. |
Returns
System.Boolean
|
Equals(ref FloatR11G11B10, ref FloatR11G11B10)
Determines whether the specified object instances are considered equal.
Declaration
public static bool Equals(ref FloatR11G11B10 value1, ref FloatR11G11B10 value2)
Parameters
FloatR11G11B10
value1
|
FloatR11G11B10
value2
|
Returns
System.Boolean
|
Equals(Object)
Returns a value that indicates whether the current instance is equal to a specified object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object to make the comparison with. |
Returns
System.Boolean
|
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A 32-bit signed integer hash code. |
ToFloat3()
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |
Operators
Equality(FloatR11G11B10, FloatR11G11B10)
Tests for equality between two objects.
Declaration
public static bool operator ==(FloatR11G11B10 left, FloatR11G11B10 right)
Parameters
FloatR11G11B10
left
The first value to compare. |
FloatR11G11B10
right
The second value to compare. |
Returns
System.Boolean
|
Explicit(Float3 to FloatR11G11B10)
Performs an explicit conversion from Float3 to FloatR11G11B10.
Declaration
public static explicit operator FloatR11G11B10(Float3 value)
Parameters
Float3
value
The value to be converted. |
Returns
FloatR11G11B10
The converted value. |
Implicit(FloatR11G11B10 to Float3)
Performs an implicit conversion from FloatR11G11B10 to Float3.
Declaration
public static implicit operator Float3(FloatR11G11B10 value)
Parameters
FloatR11G11B10
value
The value to be converted. |
Returns
Float3
The converted value. |
Inequality(FloatR11G11B10, FloatR11G11B10)
Tests for inequality between two objects.
Declaration
public static bool operator !=(FloatR11G11B10 left, FloatR11G11B10 right)
Parameters
FloatR11G11B10
left
The first value to compare. |
FloatR11G11B10
right
The second value to compare. |
Returns
System.Boolean
|