Space Engineers
Public Member Functions | Static Public Member Functions | Properties | List of all members
VRageMath.PackedVector.HalfVector2 Struct Reference

Packed vector type containing two 16-bit floating-point values. More...

Inheritance diagram for VRageMath.PackedVector.HalfVector2:
VRageMath.PackedVector.IPackedVector< uint > VRageMath.PackedVector.IPackedVector

Public Member Functions

 HalfVector2 (float x, float y)
 Initializes a new instance of the HalfVector2 structure. More...
 
 HalfVector2 (Vector2 vector)
 Initializes a new instance of the HalfVector2 structure. More...
 
void IPackedVector. PackFromVector4 (Vector4 vector)
 
Vector2 ToVector2 ()
 Expands the HalfVector2 to a Vector2. More...
 
Vector4 IPackedVector. ToVector4 ()
 
override string ToString ()
 Returns a string representation of the current instance. More...
 
override int GetHashCode ()
 Gets the hash code for the current instance. More...
 
override bool Equals (object obj)
 Returns a value that indicates whether the current instance is equal to a specified object. More...
 
bool Equals (HalfVector2 other)
 Returns a value that indicates whether the current instance is equal to a specified object. More...
 

Static Public Member Functions

static bool operator== (HalfVector2 a, HalfVector2 b)
 Compares the current instance of a class to another instance to determine whether they are the same. More...
 
static bool operator!= (HalfVector2 a, HalfVector2 b)
 Compares the current instance of a class to another instance to determine whether they are different. More...
 

Properties

uint PackedValue [get, set]
 Directly gets or sets the packed representation of the value. More...
 

Detailed Description

Packed vector type containing two 16-bit floating-point values.

Definition at line 8 of file HalfVector2.cs.

Constructor & Destructor Documentation

VRageMath.PackedVector.HalfVector2.HalfVector2 ( float  x,
float  y 
)
inline

Initializes a new instance of the HalfVector2 structure.

Parameters
xInitial value for the x component.
yInitial 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
vectorA vector containing the initial values for the components of the HalfVector2 structure.

Definition at line 40 of file HalfVector2.cs.

Member Function Documentation

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
objThe 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
otherThe 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.

static bool VRageMath.PackedVector.HalfVector2.operator!= ( HalfVector2  a,
HalfVector2  b 
)
inlinestatic

Compares the current instance of a class to another instance to determine whether they are different.

Parameters
aThe object to the left of the equality operator.
bThe object to the right of the equality operator.

Definition at line 58 of file HalfVector2.cs.

static bool VRageMath.PackedVector.HalfVector2.operator== ( HalfVector2  a,
HalfVector2  b 
)
inlinestatic

Compares the current instance of a class to another instance to determine whether they are the same.

Parameters
aThe object to the left of the equality operator.
bThe 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

Definition at line 63 of file HalfVector2.cs.

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

Expands the HalfVector2 to a Vector2.

Definition at line 76 of file HalfVector2.cs.

Vector4 IPackedVector. VRageMath.PackedVector.HalfVector2.ToVector4 ( )
inline

Definition at line 84 of file HalfVector2.cs.

Property Documentation

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: