Particle class

Holds the information of a particle used in a ParticleBehaviour.

Constructors

Particle()
Constructs a new Particle with its default values.

Properties

alpha double
The current alpha value of this particle.
getter/setter pair
cx double
The X coordinate of the center of this particle.
getter/setter pair
cy double
The Y coordinate of the center of this particle.
getter/setter pair
data ↔ dynamic
Dynamic data that can be used by ParticleBehaviour classes to store other information related to the particles.
getter/setter pair
dx double
The X component of the direction of this particle. This is usually scaled by the speed of the particle, make it a non-normalized component of direction.
getter/setter pair
dy double
The Y component of the direction of this particle This is usually scaled by the speed of the particle, make it a non-normalized component of direction.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
radius double
The radius of this particle.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
Gets the speed of this particle.
getter/setter pair
speedSqr double
Gets the square of the speed of this particle.
getter/setter pair
targetAlpha double
The target alpha of this particle.
getter/setter pair

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