SquareShape class

Represents a square shape for rendering particles.

This class calculates the transformation needed to render particles as squares using the default sprite size.

Inheritance

Constructors

SquareShape.new()
It has 4 edges and looks like a rectangle but all edges have same size
const

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

computeTransformation(Particle particle, Image defaultShapes) TransformationData?
Computes the transformation parameters for rendering particles using this shape.
override
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