Star class

Model class to depict a star in space.

Each single Star which will be part the starfield.

Constructors

Star({required double baseDepth, required double baseVelocity, required double dx, required double dy, required double dz})
Creates a Star.

Properties

baseDepth double
The base velocity the Star will travel at.
final
baseVelocity double
final
dx double
The position of the Star on the given x-axis.
getter/setter pair
dy double
The position of the Star on the given y-axis.
getter/setter pair
dz double
The position of the Star on the given z-axis.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
radius double
The current Star's radius. This value will be as reference on the CustomPainter.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translatedOffset Offset
Stores the translated dy value.
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