trait Matrix3 extends SpatialValue[Matrix3]
Trait representing a matrix
- Alphabetic
- By Inheritance
- Matrix3
- SpatialValue
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def duplicate(m00: Double = m00, m01: Double = m01, m02: Double = m02, m10: Double = m10, m11: Double = m11, m12: Double = m12, m20: Double = m20, m21: Double = m21, m22: Double = m22): Matrix3
Creates a new copy of this Matrix3 with the new values assigned.
- abstract def isMutable: Boolean
- Definition Classes
- SpatialValue
- abstract def m00: Double
- abstract def m01: Double
- abstract def m02: Double
- abstract def m10: Double
- abstract def m11: Double
- abstract def m12: Double
- abstract def m20: Double
- abstract def m21: Double
- abstract def m22: Double
- abstract def set(m00: Double = m00, m01: Double = m01, m02: Double = m02, m10: Double = m10, m11: Double = m11, m12: Double = m12, m20: Double = m20, m21: Double = m21, m22: Double = m22): Matrix3
Updates this Matrix3 if mutable and creates a new instance if immutable.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def *(scalar: Double): Matrix3
- def *(that: Matrix3): Matrix3
Matrix multiplication, returns a new matrix
Matrix multiplication, returns a new matrix
- that
the matrix to multiply against
- returns
the product of the multiplication of both matrices
- def +(scalar: Double): Matrix3
- def +(that: Matrix3): Matrix3
Matrix addition, returns a new matrix
Matrix addition, returns a new matrix
- that
the matrix to add
- returns
the product of the addition
- def -(scalar: Double): Matrix3
- def -(that: Matrix3): Matrix3
Matrix subtraction, returns a new matrix
Matrix subtraction, returns a new matrix
- that
the matrix to subtract
- returns
the product of the addition
- def /(scalar: Double): Matrix3
- def ==(m: Matrix3): Boolean
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def det(): Double
The determinant of the matrix
- def duplicate(that: Matrix3): Matrix3
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromArray(array: Array[Double]): Matrix3
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def immutable: ImmutableMatrix3
- Definition Classes
- Matrix3 → SpatialValue
- def inv(): Matrix3
Inverts a non singular matrix
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def localize(point: Point): Point
Localize the point to the particular matrix, assuming the matrix encodes a locally translated rotation and translation
- def mutable: MutableMatrix3
- Definition Classes
- Matrix3 → SpatialValue
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rotate(value: Double): Matrix3
Postmultiplies this matrix with a (counter-clockwise) rotation matrix.
Postmultiplies this matrix with a (counter-clockwise) rotation matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale.
- value
is a representation of 1.0 being a complete rotation
- def safeInverse(): Option[Matrix3]
- def scale(scaleX: Double, scaleY: Double): Matrix3
Postmultiplies this matrix with a scale matrix.
Postmultiplies this matrix with a scale matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale.
- scaleX
the scale in x
- scaleY
the scale in y
- def set(that: Matrix3): Matrix3
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toArray(array: Array[Double]): Array[Double]
- def toRotation(value: Double): Matrix3
- def toScaling(scaleX: Double, scaleY: Double): Matrix3
Set to scaling matrix
Set to scaling matrix
- scaleX
the scale in x
- scaleY
the scale in y
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toTranslation(x: Double, y: Double): Matrix3
Set to translation matrix
Set to translation matrix
- x
the translation in x
- y
the translation in y
- def translate(x: Double, y: Double): Matrix3
Postmultiplies this matrix by a translation matrix.
Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES' 1.x glTranslate/glRotate/glScale.
- x
the translation in x
- y
the translation in y
- def transpose: Matrix3
Return a transposed matrix
- def trn(x: Double, y: Double): Matrix3
Add a translational component to the matrix in the 3rd column
Add a translational component to the matrix in the 3rd column
- x
the x-component of the translation vector
- y
the y-component of the translation vector
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withArray(duplicate: Boolean)(f: (Array[Double]) => Unit): Matrix3