DoughTransformations class

A utility for common dough transformations.

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

expansion(DoughTransformerContext context) Matrix4
A utility method which creates a Matrix4 that scales widgets by a factor of the DoughRecipe.expansion property.
perspectiveWarp(DoughTransformerContext context) Matrix4
A utility method which creates a Matrix4 that perspectively rotates wigets around their yaw and pitch axes based on DoughTransformerContext.delta and DoughRecipe.viscosity.
squishDeformation(DoughTransformerContext context) Matrix4
A utility method which creates the default dough squishing Matrix4. The resulting Matrix4 doesn't apply translations, only other warping deformations based on the DoughTransformerContext.recipe.
viscositySkew(DoughTransformerContext context) Matrix4
A utility method which creates a Matrix4 that skews widgets in the direction of the DoughTransformerContext.delta based on the DoughRecipe.viscosity. If an DoughTransformerContext.axis is specified, the resulting matrix will be constrained to the provided axis.