M4 class

Constructors

M4()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

copy(List<double> src, [dynamic dst]) → dynamic
cross(dynamic a, dynamic b) List<double>
identity() List<double>
inverse(List<double> m) List<double>
lookAt(List<double> cameraPosition, List<double> target, List<double> up) List<double>
makeZToWMatrix(double fudgeFactor) List<double>
multiply(List<double> a, List<double> b, [dynamic dst]) List<double>
normalize(dynamic v) List<double>
perspective(double fieldOfViewInRadians, double aspect, double near, double far) List<double>
projection(double width, double height, double depth) List<double>
scale(List<double> m, double sx, double sy, double sz) List<double>
scaling(double sx, double sy, double sz) List<double>
subtractVectors(dynamic a, dynamic b) List<double>
transformPoint(List<double> m, List<double> v, [dynamic dst]) → dynamic
Takes a 4-by-4 matrix and a vector with 3 entries,
translate(List<double> m, double tx, double ty, double tz) List<double>
translation(double tx, double ty, double tz) List<double>
transpose(List<double> m, [dynamic dst]) → dynamic
Transposes a matrix.
xRotate(List<double> m, double angleInRadians) List<double>
xRotation(double angleInRadians) List<double>
yRotate(List<double> m, double angleInRadians) List<double>
yRotation(double angleInRadians) List<double>
zRotate(List<double> m, double angleInRadians) List<double>
zRotation(double angleInRadians) List<double>