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

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

Inheritance diagram for VRageMath.PackedVector.HalfVector4:
VRageMath.PackedVector.IPackedVector< ulong > VRageMath.PackedVector.IPackedVector

Public Member Functions

 HalfVector4 (float x, float y, float z, float w)
 Initializes a new instance of the HalfVector4 class. More...
 
 HalfVector4 (Vector4 vector)
 Initializes a new instance of the HalfVector4 structure. More...
 
 HalfVector4 (HalfVector3 vector3, ushort w)
 
void IPackedVector. PackFromVector4 (Vector4 vector)
 
Vector4 ToVector4 ()
 Expands the packed representation into a Vector4. More...
 
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 (HalfVector4 other)
 Returns a value that indicates whether the current instance is equal to a specified object. More...
 

Static Public Member Functions

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

Public Attributes

ulong PackedValue
 

Properties

ulong IPackedVector< ulong >. PackedValue [get, set]
 

Detailed Description

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

Definition at line 9 of file HalfVector4.cs.

Constructor & Destructor Documentation

VRageMath.PackedVector.HalfVector4.HalfVector4 ( float  x,
float  y,
float  z,
float  w 
)
inline

Initializes a new instance of the HalfVector4 class.

Parameters
xInitial value for the x component.
yInitial value for the y component.
zInitial value for the z component.
wInitial value for the w component.

Definition at line 23 of file HalfVector4.cs.

VRageMath.PackedVector.HalfVector4.HalfVector4 ( Vector4  vector)
inline

Initializes a new instance of the HalfVector4 structure.

Parameters
vectorA vector containing the initial values for the components of the HalfVector4 structure.

Definition at line 32 of file HalfVector4.cs.

VRageMath.PackedVector.HalfVector4.HalfVector4 ( HalfVector3  vector3,
ushort  w 
)
inline

Definition at line 37 of file HalfVector4.cs.

Member Function Documentation

override bool VRageMath.PackedVector.HalfVector4.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 103 of file HalfVector4.cs.

bool VRageMath.PackedVector.HalfVector4.Equals ( HalfVector4  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 115 of file HalfVector4.cs.

override int VRageMath.PackedVector.HalfVector4.GetHashCode ( )
inline

Gets the hash code for the current instance.

Definition at line 94 of file HalfVector4.cs.

static bool VRageMath.PackedVector.HalfVector4.operator!= ( HalfVector4  a,
HalfVector4  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 55 of file HalfVector4.cs.

static bool VRageMath.PackedVector.HalfVector4.operator== ( HalfVector4  a,
HalfVector4  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 46 of file HalfVector4.cs.

void IPackedVector. VRageMath.PackedVector.HalfVector4.PackFromVector4 ( Vector4  vector)
inline

Definition at line 60 of file HalfVector4.cs.

override string VRageMath.PackedVector.HalfVector4.ToString ( )
inline

Returns a string representation of the current instance.

Definition at line 86 of file HalfVector4.cs.

Vector4 VRageMath.PackedVector.HalfVector4.ToVector4 ( )
inline

Expands the packed representation into a Vector4.

Definition at line 73 of file HalfVector4.cs.

Member Data Documentation

ulong VRageMath.PackedVector.HalfVector4.PackedValue

Definition at line 11 of file HalfVector4.cs.

Property Documentation

ulong IPackedVector<ulong>. VRageMath.PackedVector.HalfVector4.PackedValue
getset

Definition at line 14 of file HalfVector4.cs.


The documentation for this struct was generated from the following file: