RK4SpringDescription class

Spring parameters for the RK4 simulation.

tension maps to stiffness. friction maps to damping. Fuchsia always used friction=50 and varied tension:

  • 250 (theatrical/slow)
  • 450 (default)
  • 600 (responsive)
  • 750 (snappy)
  • 900 (snappiest)

Constructors

RK4SpringDescription({double tension = 450.0, double friction = 50.0})
const
RK4SpringDescription.fromSpring(SpringDescription sd)
Create from Flutter's SpringDescription. Maps stiffness→tension, damping→friction. Mass is ignored (Fuchsia always used mass=1).

Properties

friction → double
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tension → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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