Packed vector type containing two 16-bit floating-point values.
More...
|
uint | PackedValue [get, set] |
| Directly gets or sets the packed representation of the value. More...
|
|
Packed vector type containing two 16-bit floating-point values.
Definition at line 8 of file HalfVector2.cs.
VRageMath.PackedVector.HalfVector2.HalfVector2 |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
Initializes a new instance of the HalfVector2 structure.
- Parameters
-
x | Initial value for the x component. |
y | Initial value for the y component. |
Definition at line 31 of file HalfVector2.cs.
VRageMath.PackedVector.HalfVector2.HalfVector2 |
( |
Vector2 |
vector | ) |
|
|
inline |
Initializes a new instance of the HalfVector2 structure.
- Parameters
-
vector | A vector containing the initial values for the components of the HalfVector2 structure. |
Definition at line 40 of file HalfVector2.cs.
override bool VRageMath.PackedVector.HalfVector2.Equals |
( |
object |
obj | ) |
|
|
inline |
Returns a value that indicates whether the current instance is equal to a specified object.
- Parameters
-
obj | The object with which to make the comparison. |
Definition at line 110 of file HalfVector2.cs.
bool VRageMath.PackedVector.HalfVector2.Equals |
( |
HalfVector2 |
other | ) |
|
|
inline |
Returns a value that indicates whether the current instance is equal to a specified object.
- Parameters
-
other | The object with which to make the comparison. |
Definition at line 122 of file HalfVector2.cs.
override int VRageMath.PackedVector.HalfVector2.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code for the current instance.
Definition at line 101 of file HalfVector2.cs.
Compares the current instance of a class to another instance to determine whether they are different.
- Parameters
-
a | The object to the left of the equality operator. |
b | The object to the right of the equality operator. |
Definition at line 58 of file HalfVector2.cs.
Compares the current instance of a class to another instance to determine whether they are the same.
- Parameters
-
a | The object to the left of the equality operator. |
b | The object to the right of the equality operator. |
Definition at line 49 of file HalfVector2.cs.
void IPackedVector. VRageMath.PackedVector.HalfVector2.PackFromVector4 |
( |
Vector4 |
vector | ) |
|
|
inline |
override string VRageMath.PackedVector.HalfVector2.ToString |
( |
| ) |
|
|
inline |
Returns a string representation of the current instance.
Definition at line 93 of file HalfVector2.cs.
Vector2 VRageMath.PackedVector.HalfVector2.ToVector2 |
( |
| ) |
|
|
inline |
Vector4 IPackedVector. VRageMath.PackedVector.HalfVector2.ToVector4 |
( |
| ) |
|
|
inline |
uint VRageMath.PackedVector.HalfVector2.PackedValue |
|
getset |
Directly gets or sets the packed representation of the value.
Definition at line 16 of file HalfVector2.cs.
The documentation for this struct was generated from the following file: