edu.utexas.cs.sdao.reyes.core

Matrix4

class Matrix4 extends Animatable[Matrix4]

Defines a 4x4 matrix.

Linear Supertypes
Animatable[Matrix4], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Matrix4
  2. Animatable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Matrix4(data: Array[Float] = ...)

    data

    a 16-item array containing the matrix in row-major order, i.e. indices 0-3 are the first row, 4-7 the second row, etc.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *(b: FilledBoundingSphere): FilledBoundingSphere

  5. def *(u: Vector3): Vector3

  6. def *(right: Matrix4): Matrix4

  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. def apply(): Matrix4

    Gets the value of the parameter at the given time.

    Gets the value of the parameter at the given time.

    returns

    the value of the parameter

    Definition Classes
    Matrix4Animatable
  10. def apply(row: Int, col: Int): Float

    Gets the value of the matrix at the specified translation.

    Gets the value of the matrix at the specified translation.

    row

    the row of the desired value

    col

    the column of the desired value

    returns

    the desired value

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. val data: Array[Float]

    a 16-item array containing the matrix in row-major order, i.

    a 16-item array containing the matrix in row-major order, i.e. indices 0-3 are the first row, 4-7 the second row, etc.

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def invert: Matrix4

    Generates the inverse matrix, i.

    Generates the inverse matrix, i.e. a matrix that, when left- or right-multiplied with this one, produces the identity matrix.

    Use this function to produce a transformation matrix that will undo a given set of transformations.

    If this matrix is singular, then an inverse does not exist, so the original matrix will be returned.

    Note: this implementation doesn't do anything fancy. It hard-codes the arithmetic for each new matrix value.

    returns

    the inverse matrix

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def lookAt(dir: Vector3): Matrix4

    Produces a new transformation matrix that does all of the previous transformations, and then looks in the specified direction.

    Produces a new transformation matrix that does all of the previous transformations, and then looks in the specified direction. In other words, a look-at matrix is left-multiplied to the current matrix.

    dir

    the direction to look at, relative to the curren translation

    returns

    the new transformation matrix

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def rotate(rads: Vector3): Matrix4

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation; positive values rotate counter-clockwise.

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation; positive values rotate counter-clockwise. In other words, a rotation matrix is left-multiplied to the current matrix.

    rads

    the Euler angles of the rotation; rotation is performed in XYZ order

    returns

    the new transformation matrix

  26. def rotateX(rads: Float): Matrix4

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation about the positive X-axis; positive values rotate counter-clockwise.

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation about the positive X-axis; positive values rotate counter-clockwise. In other words, a rotation matrix is left-multiplied to the current matrix.

    rads

    the radians to rotate counter-clockwise along the +X-axis

    returns

    the new transformation matrix

  27. def rotateY(rads: Float): Matrix4

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation about the positive Y-axis; positive values rotate counter-clockwise.

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation about the positive Y-axis; positive values rotate counter-clockwise. In other words, a rotation matrix is left-multiplied to the current matrix.

    rads

    the radians to rotate counter-clockwise along the +Y-axis

    returns

    the new transformation matrix

  28. def rotateZ(rads: Float): Matrix4

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation about the positive Z-axis; positive values rotate counter-clockwise.

    Produces a new transformation matrix that does all of the previous transformations, and then does a rotation about the positive Z-axis; positive values rotate counter-clockwise. In other words, a rotation matrix is left-multiplied to the current matrix.

    rads

    the radians to rotate counter-clockwise along the +Z-axis

    returns

    the new transformation matrix

  29. def scale(s: Vector3): Matrix4

    Produces a new transformation matrix that does all of the previous transformations, and then applies the specified scaling.

    Produces a new transformation matrix that does all of the previous transformations, and then applies the specified scaling. In other words, a scaling matrix is left-multiplied to the current matrix.

    s

    the amount to scale along each axis

    returns

    the new transformation matrix

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    Matrix4 → AnyRef → Any
  32. def translate(t: Vector3): Matrix4

    Produces a new transformation matrix that does all of the previous transformations, and then translates in the specified direction.

    Produces a new transformation matrix that does all of the previous transformations, and then translates in the specified direction. In other words, a translation matrix is left-multiplied to the current matrix.

    t

    the direction to translate in

    returns

    the new transformation matrix

  33. def transpose: Matrix4

    Generates the transpose matrix, that is, the matrix whose rows are composed of this matrix's columns, and whose columns are composed of this matrix's rows.

    Generates the transpose matrix, that is, the matrix whose rows are composed of this matrix's columns, and whose columns are composed of this matrix's rows.

    returns

    the transpose matrix

  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Animatable[Matrix4]

Inherited from AnyRef

Inherited from Any

Ungrouped