MatrixUtils class Null safety

Utility functions for working with matrices.

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

createCylindricalProjectionTransform({required double radius, required double angle, double perspective = 0.001, Axis orientation = Axis.vertical}) → Matrix4
Create a transformation matrix which mimics the effects of tangentially wrapping the plane on which this transform is applied around a cylinder and then looking at the cylinder from a point outside the cylinder.
forceToPoint(Offset offset) → Matrix4
Returns a matrix that transforms every point to offset.
getAsScale(Matrix4 transform) → double?
Returns the given transform matrix as a double describing a uniform scale, if the matrix is nothing but a symmetric 2D scale transform.
getAsTranslation(Matrix4 transform) → Offset?
Returns the given transform matrix as an Offset, if the matrix is nothing but a 2D translation.
inverseTransformRect(Matrix4 transform, Rect rect) → 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, Offset point) → Offset
Applies the given matrix as a perspective transform to the given point.
transformRect(Matrix4 transform, Rect rect) → Rect
Returns a rect that bounds the result of applying the given matrix as a perspective transform to the given rect.