org.rajawali3d.math

Package org.rajawali3d.math

Types

MathUtil

open class MathUtil
open class MathUtil

Matrix

open class Matrix
open class Matrix

NOTE: This class taken from Android Open Source Project source code and modified to support double precision matrices. Matrix math utilities. These methods operate on OpenGL ES format matrices and vectors stored in double arrays. Matrices are 4 x 4 column-vector matrices stored in column-major order:


   m[offset +  0] m[offset +  4] m[offset +  8] m[offset + 12]
   m[offset +  1] m[offset +  5] m[offset +  9] m[offset + 13]
   m[offset +  2] m[offset +  6] m[offset + 10] m[offset + 14]
   m[offset +  3] m[offset +  7] m[offset + 11] m[offset + 15]
  
Vectors are 4 row x 1 column column-vectors stored in order:

  v[offset + 0]
  v[offset + 1]
  v[offset + 2]
  v[offset + 3]
  

Matrix4

class Matrix4 : Cloneable
class Matrix4 : Cloneable

Encapsulates a column major 4x4 Matrix. This class is not thread safe and must be confined to a single thread or protected by some external locking mechanism if necessary. All static methods are thread safe. Rewritten August 8, 2013 by Jared Woolston (jwoolston@tenkiv.com) with heavy influence from libGDX

Plane

open class Plane
open class Plane

Quaternion

class Quaternion : Cloneable
class Quaternion : Cloneable

Encapsulates a quaternion. Ported from http://www.ogre3d.org/docs/api/html/classOgre_1_1Quaternion.html Rewritten July 27, 2013 by Jared Woolston with heavy influence from libGDX