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

Packed vector type containing four 8-bit signed normalized values, ranging from −1 to 1. More...

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

Public Member Functions

 NormalizedByte4 (float x, float y, float z, float w)
 Initializes a new instance of the NormalizedByte4 class. More...
 
 NormalizedByte4 (Vector4 vector)
 Initializes a new instance of the NormalizedByte4 structure. More...
 
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 (NormalizedByte4 other)
 Returns a value that indicates whether the current instance is equal to a specified object. More...
 

Static Public Member Functions

static bool operator== (NormalizedByte4 a, NormalizedByte4 b)
 Compares the current instance of a class to another instance to determine whether they are the same. More...
 
static bool operator!= (NormalizedByte4 a, NormalizedByte4 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 signed normalized values, ranging from −1 to 1.

Definition at line 9 of file NormalizedByte4.cs.

Constructor & Destructor Documentation

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

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

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

Initializes a new instance of the NormalizedByte4 structure.

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

Definition at line 41 of file NormalizedByte4.cs.

Member Function Documentation

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

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

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

Gets the hash code for the current instance.

Definition at line 98 of file NormalizedByte4.cs.

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

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

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

Definition at line 64 of file NormalizedByte4.cs.

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

Returns a string representation of the current instance.

Definition at line 90 of file NormalizedByte4.cs.

Vector4 VRageMath.PackedVector.NormalizedByte4.ToVector4 ( )
inline

Expands the packed representation into a Vector4.

Definition at line 77 of file NormalizedByte4.cs.

Property Documentation

uint VRageMath.PackedVector.NormalizedByte4.PackedValue
getset

Directly gets or sets the packed representation of the value.

Definition at line 17 of file NormalizedByte4.cs.


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