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

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

Public Member Functions

 HalfVector3 (float x, float y, float z)
 Initializes a new instance of the HalfVector3 class. More...
 
 HalfVector3 (Vector3 vector)
 Initializes a new instance of the HalfVector3 structure. More...
 
Vector3 ToVector3 ()
 Expands the packed representation into a Vector4. More...
 
HalfVector4 ToHalfVector4 ()
 
override string ToString ()
 Returns a string representation of the current instance. More...
 

Static Public Member Functions

static implicit operator HalfVector3 (Vector3 v)
 
static implicit operator Vector3 (HalfVector3 v)
 

Public Attributes

ushort X
 
ushort Y
 
ushort Z
 

Detailed Description

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

Definition at line 8 of file HalfVector3.cs.

Constructor & Destructor Documentation

VRageMath.PackedVector.HalfVector3.HalfVector3 ( float  x,
float  y,
float  z 
)
inline

Initializes a new instance of the HalfVector3 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 16 of file HalfVector3.cs.

VRageMath.PackedVector.HalfVector3.HalfVector3 ( Vector3  vector)
inline

Initializes a new instance of the HalfVector3 structure.

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

Definition at line 27 of file HalfVector3.cs.

Member Function Documentation

static implicit VRageMath.PackedVector.HalfVector3.operator HalfVector3 ( Vector3  v)
inlinestatic

Definition at line 51 of file HalfVector3.cs.

static implicit VRageMath.PackedVector.HalfVector3.operator Vector3 ( HalfVector3  v)
inlinestatic

Definition at line 56 of file HalfVector3.cs.

HalfVector4 VRageMath.PackedVector.HalfVector3.ToHalfVector4 ( )
inline

Definition at line 44 of file HalfVector3.cs.

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

Returns a string representation of the current instance.

Definition at line 64 of file HalfVector3.cs.

Vector3 VRageMath.PackedVector.HalfVector3.ToVector3 ( )
inline

Expands the packed representation into a Vector4.

Definition at line 35 of file HalfVector3.cs.

Member Data Documentation

ushort VRageMath.PackedVector.HalfVector3.X

Definition at line 10 of file HalfVector3.cs.

ushort VRageMath.PackedVector.HalfVector3.Y

Definition at line 10 of file HalfVector3.cs.

ushort VRageMath.PackedVector.HalfVector3.Z

Definition at line 10 of file HalfVector3.cs.


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