Utility functions for working with matrices.

Static Methods

getAsTranslation(Matrix4 transform) → Offset

Returns the given transform matrix as Offset, if the matrix is nothing but a 2D translation.

inverseTransformRect(Rect rect, Matrix4 transform) → Rect

Returns a rect that bounds the result of applying the inverse of the given matrix as a perspective transform to the given rect.

isIdentity(Matrix4 a) → bool

Whether the given matrix is the identity matrix.

matrixEquals(Matrix4 a, Matrix4 b) → bool

Returns true if the given matrices are exactly equal, and false otherwise. Null values are assumed to be the identity matrix.

transformPoint(Matrix4 transform, Point point) → Point

Applies the given matrix as a perspective transform to the given point.

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited