Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Chunks.Geometry.IntMatrix3 Struct Reference
Inheritance diagram for Chunks.Geometry.IntMatrix3:

Public Member Functions

bool Equals (IntMatrix3 other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static IntMatrix3 RotateX (int rotation)
 
static IntMatrix3 RotateY (int rotation)
 
static IntMatrix3 RotateZ (int rotation)
 
static bool operator== (IntMatrix3 a, IntMatrix3 b)
 
static bool operator!= (IntMatrix3 a, IntMatrix3 b)
 
static IntMatrix3 operator* (IntMatrix3 a, IntMatrix3 b)
 
static IntVector operator* (IntMatrix3 m, IntVector v)
 
static Vector operator* (IntMatrix3 m, Vector v)
 

Public Attributes

readonly sbyte _m01
 
readonly sbyte _m02
 
readonly sbyte _m11
 
readonly sbyte _m12
 
readonly sbyte _m21
 
readonly sbyte _m22
 
IntMatrix3 Inverse => new IntMatrix3(_m00, _m10, _m20, _m01, _m11, _m21, _m02, _m12, _m22)
 

Static Public Attributes

static readonly IntMatrix3 Identity = new IntMatrix3( 1, 0, 0, 0, 1, 0, 0, 0, 1)
 
static readonly IntMatrix3 FlipX = new IntMatrix3(-1, 0, 0, 0, 1, 0, 0, 0, 1)
 
static readonly IntMatrix3 FlipY = new IntMatrix3( 1, 0, 0, 0,-1, 0, 0, 0, 1)
 
static readonly IntMatrix3 FlipZ = new IntMatrix3( 1, 0, 0, 0, 1, 0, 0, 0,-1)
 

Properties

sbyte this[int row, int col] [get]
 

Member Function Documentation

bool Chunks.Geometry.IntMatrix3.Equals ( IntMatrix3  other)
override bool Chunks.Geometry.IntMatrix3.Equals ( object  obj)
override int Chunks.Geometry.IntMatrix3.GetHashCode ( )
static bool Chunks.Geometry.IntMatrix3.operator!= ( IntMatrix3  a,
IntMatrix3  b 
)
static
static IntMatrix3 Chunks.Geometry.IntMatrix3.operator* ( IntMatrix3  a,
IntMatrix3  b 
)
static
static IntVector Chunks.Geometry.IntMatrix3.operator* ( IntMatrix3  m,
IntVector  v 
)
static
static Vector Chunks.Geometry.IntMatrix3.operator* ( IntMatrix3  m,
Vector  v 
)
static
static bool Chunks.Geometry.IntMatrix3.operator== ( IntMatrix3  a,
IntMatrix3  b 
)
static
static IntMatrix3 Chunks.Geometry.IntMatrix3.RotateX ( int  rotation)
static
static IntMatrix3 Chunks.Geometry.IntMatrix3.RotateY ( int  rotation)
static
static IntMatrix3 Chunks.Geometry.IntMatrix3.RotateZ ( int  rotation)
static

Member Data Documentation

readonly sbyte Chunks.Geometry.IntMatrix3._m01
readonly sbyte Chunks.Geometry.IntMatrix3._m02
readonly sbyte Chunks.Geometry.IntMatrix3._m11
readonly sbyte Chunks.Geometry.IntMatrix3._m12
readonly sbyte Chunks.Geometry.IntMatrix3._m21
readonly sbyte Chunks.Geometry.IntMatrix3._m22
readonly IntMatrix3 Chunks.Geometry.IntMatrix3.FlipX = new IntMatrix3(-1, 0, 0, 0, 1, 0, 0, 0, 1)
static
readonly IntMatrix3 Chunks.Geometry.IntMatrix3.FlipY = new IntMatrix3( 1, 0, 0, 0,-1, 0, 0, 0, 1)
static
readonly IntMatrix3 Chunks.Geometry.IntMatrix3.FlipZ = new IntMatrix3( 1, 0, 0, 0, 1, 0, 0, 0,-1)
static
readonly IntMatrix3 Chunks.Geometry.IntMatrix3.Identity = new IntMatrix3( 1, 0, 0, 0, 1, 0, 0, 0, 1)
static
IntMatrix3 Chunks.Geometry.IntMatrix3.Inverse => new IntMatrix3(_m00, _m10, _m20, _m01, _m11, _m21, _m02, _m12, _m22)

Can just return the transpose since this should be an orthogonal matrix.

Property Documentation

sbyte Chunks.Geometry.IntMatrix3.this[int row, int col]
get

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