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

Classes

class  EqualityComparer
 

Public Member Functions

 Vector3UByte (byte x, byte y, byte z)
 
 Vector3UByte (Vector3I vec)
 
override string ToString ()
 
override int GetHashCode ()
 
override bool Equals (object obj)
 
int LengthSquared ()
 

Static Public Member Functions

static bool operator== (Vector3UByte a, Vector3UByte b)
 
static bool operator!= (Vector3UByte a, Vector3UByte b)
 
static Vector3UByte Round (Vector3 vec)
 
static Vector3UByte Floor (Vector3 vec)
 
static implicit operator Vector3I (Vector3UByte vec)
 
static bool IsMiddle (Vector3UByte vec)
 Returns true when all components are 127 More...
 
static Vector3UByte Normalize (Vector3 vec, float range)
 Normalizes Vector3 into Vector4UByte, scales vector from (-range, range) to (0, 255). Unsafe for values "range >= any_vec_value / 257"; More...
 
static Vector3 Denormalize (Vector3UByte vec, float range)
 Unpacks Vector3 from Vector3UByte, scales vector from (0, 255) to (-range, range) More...
 

Public Attributes

byte X
 
byte Y
 
byte Z
 

Static Public Attributes

static readonly EqualityComparer Comparer = new EqualityComparer()
 
static Vector3UByte Zero = new Vector3UByte(0, 0, 0)
 

Detailed Description

Definition at line 10 of file Vector3UByte.cs.

Constructor & Destructor Documentation

VRageMath.Vector3UByte.Vector3UByte ( byte  x,
byte  y,
byte  z 
)
inline

Definition at line 44 of file Vector3UByte.cs.

VRageMath.Vector3UByte.Vector3UByte ( Vector3I  vec)
inline

Definition at line 51 of file Vector3UByte.cs.

Member Function Documentation

static Vector3 VRageMath.Vector3UByte.Denormalize ( Vector3UByte  vec,
float  range 
)
inlinestatic

Unpacks Vector3 from Vector3UByte, scales vector from (0, 255) to (-range, range)

Definition at line 141 of file Vector3UByte.cs.

override bool VRageMath.Vector3UByte.Equals ( object  obj)
inline

Definition at line 72 of file Vector3UByte.cs.

static Vector3UByte VRageMath.Vector3UByte.Floor ( Vector3  vec)
inlinestatic

Definition at line 99 of file Vector3UByte.cs.

override int VRageMath.Vector3UByte.GetHashCode ( )
inline

Definition at line 67 of file Vector3UByte.cs.

static bool VRageMath.Vector3UByte.IsMiddle ( Vector3UByte  vec)
inlinestatic

Returns true when all components are 127

Definition at line 117 of file Vector3UByte.cs.

int VRageMath.Vector3UByte.LengthSquared ( )
inline

Definition at line 109 of file Vector3UByte.cs.

static Vector3UByte VRageMath.Vector3UByte.Normalize ( Vector3  vec,
float  range 
)
inlinestatic

Normalizes Vector3 into Vector4UByte, scales vector from (-range, range) to (0, 255). Unsafe for values "range >= any_vec_value / 257";

Definition at line 127 of file Vector3UByte.cs.

static implicit VRageMath.Vector3UByte.operator Vector3I ( Vector3UByte  vec)
inlinestatic

Definition at line 104 of file Vector3UByte.cs.

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

Definition at line 89 of file Vector3UByte.cs.

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

Definition at line 84 of file Vector3UByte.cs.

static Vector3UByte VRageMath.Vector3UByte.Round ( Vector3  vec)
inlinestatic

Definition at line 94 of file Vector3UByte.cs.

override string VRageMath.Vector3UByte.ToString ( )
inline

Definition at line 62 of file Vector3UByte.cs.

Member Data Documentation

readonly EqualityComparer VRageMath.Vector3UByte.Comparer = new EqualityComparer()
static

Definition at line 33 of file Vector3UByte.cs.

byte VRageMath.Vector3UByte.X

Definition at line 38 of file Vector3UByte.cs.

byte VRageMath.Vector3UByte.Y

Definition at line 40 of file Vector3UByte.cs.

byte VRageMath.Vector3UByte.Z

Definition at line 42 of file Vector3UByte.cs.

Vector3UByte VRageMath.Vector3UByte.Zero = new Vector3UByte(0, 0, 0)
static

Definition at line 35 of file Vector3UByte.cs.


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