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

Packed vector type containing four 8-bit unsigned integer values, ranging from 0 to 255. More...

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

Public Member Functions

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

Static Public Member Functions

static bool operator== (Byte4 a, Byte4 b)
 Compares the current instance of a class to another instance to determine whether they are the same. More...
 
static bool operator!= (Byte4 a, Byte4 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 four 8-bit unsigned integer values, ranging from 0 to 255.

Definition at line 9 of file Byte4.cs.

Constructor & Destructor Documentation

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

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

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

Initializes a new instance of the Byte4 structure.

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

Definition at line 41 of file Byte4.cs.

VRageMath.PackedVector.Byte4.Byte4 ( uint  packedValue)
inline

Definition at line 46 of file Byte4.cs.

Member Function Documentation

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

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

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

Gets the hash code for the current instance.

Definition at line 113 of file Byte4.cs.

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

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

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

Definition at line 69 of file Byte4.cs.

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

Returns a string representation of the current instance.

Definition at line 105 of file Byte4.cs.

Vector4 VRageMath.PackedVector.Byte4.ToVector4 ( )
inline

Expands the packed representation into a Vector4.

Definition at line 82 of file Byte4.cs.

Vector4UByte VRageMath.PackedVector.Byte4.ToVector4UByte ( )
inline

Definition at line 92 of file Byte4.cs.

Property Documentation

uint VRageMath.PackedVector.Byte4.PackedValue
getset

Directly gets or sets the packed representation of the value.

Definition at line 17 of file Byte4.cs.


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