Transformation class

Constructors

Transformation({Vec3 right_rotation = (0, 0, 0), Vec3 left_rotation = (0, 0, 0), Vec3 scale = (1, 1, 1), Vec3 translation = (0, 0, 0)})
An object describing the scale, rotation and translation
Transformation.centered({Vec3 scale = (1, 1, 1), Vec3 right_rotation = (0, 0, 0), Vec3 left_rotation = (0, 0, 0)})
factory
Transformation.rotate(double x, double y, double z)
rotates display entity
factory
Transformation.scale(double x, double y, double z)
scales display entity
factory
Transformation.scaleAll(double scale)
scales all axies uniformly
factory
Transformation.translate(double x, double y, double z)
shifts display entity
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
left_rotation Vec3
Rotation before scaling
final
right_rotation Vec3
Rotation after scaling
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale Vec3
scaling(1 being the default size)
final
translation Vec3
translation, shifting the display
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, List<double>>
toString() String
A string representation of this object.
inherited

Operators

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