Wave class final

A sine added to a track's value: amplitude * sin(2π(cycles·t + phase)), fading by 1 − decay·t (a shake dies out with decay 1), folded to its absolute value with rectify (a ball's hops). Flutter has no counterpart; a list of them is a Fourier series: a wobble, a sway, a flame's flicker.

Annotations
  • @immutable

Constructors

Wave({double cycles = 1, double amplitude = 1, double phase = 0, double decay = 0, bool rectify = false})
const

Properties

amplitude → double
final
cycles → double
final
decay → double
final
hashCode → int
The hash code for this object.
no setterinherited
phase → double
final
props → List<Object?>
no setter
rectify → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

at(double t) → double
Its value at t (0–1).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Object? json) → Wave?