Matrix3 class

A class representing a 3x3 matrix.

Constructors

Matrix3.fromJson(Map<String, dynamic> json)
Matrix3.identity()
Creates a 3x3 matrix with the given arguments in row-major order. If no arguments are provided, the constructor initializes the Matrix3 to the 3x3 identity matrix.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage Float32List
getter/setter pair
type String
getter/setter pair

Methods

applyMatrix3(Matrix3 arg) → void
clone() Matrix3
Creates a new Matrix3 and with identical elements to this one.
copyFromArray(List<double> array, {int offset = 0}) Matrix3
array - the array to read the elements from.
determinant() double
Computes and returns the determinant of this matrix.
equals(Matrix3 matrix) bool
Return true if this matrix and page:Matrix3 m are equal.
factory(NativeArray<num> array, {int offset = 0}) Matrix3
getNormalMatrix(Matrix4 matrix4) Matrix3
m - Matrix4
identity() Matrix3
Set the current 3x3 matrix as an identity matrix.
invert() Matrix3
Inverts this matrix, using the analytic method. You can not invert with a determinant of zero. If you attempt this, the method produces a zero matrix instead.
multiply(Matrix3 m) Matrix3
Post-multiplies this matrix by m.
multiply2(Matrix3 a, Matrix3 b) Matrix3
Sets this matrix to a x b.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
premultiply(Matrix3 m) Matrix3
rotate(double theta) Matrix3
Rotates this matrix by the given theta (in radians).
scale(double s) Matrix3
Multiplies every component of the matrix by the scalar value s.
scaleXY(double sx, double sy) Matrix3
setFrom(Matrix3 m) Matrix3
Copies the elements of matrix page:Matrix3 m into this matrix.
setFromMatrix4(Matrix4 m) Matrix3
Set this matrix to the upper 3x3 matrix of the Matrix4 m.
setUvTransform(double tx, double ty, double sx, double sy, double rotation, double cx, double cy) Matrix3
tx - offset x
setValues(double n11, double n12, double n13, double n21, double n22, double n23, double n31, double n32, double n33) Matrix3
toArray(List<double> array, {int offset = 0}) List<double>
array - (optional) array to store the resulting vector in. If not given a new array will be created.
toJson() Map<String, dynamic>
toList() List<double>
toString() String
A string representation of this object.
inherited
translate(double tx, double ty) Matrix3
Translates this matrix by the given scalar values.
transpose() Matrix3
Transposes this matrix in place.
transposeIntoArray(List<double> r) Matrix3
array - array to store the resulting vector in.

Operators

operator ==(Object other) bool
The equality operator.
inherited