SpringConfig class

Data structure for storing spring configuration.

Constructors

SpringConfig(double tension, double friction)
constructor for the SpringConfig @param tension tension value for the SpringConfig @param friction friction value for the SpringConfig

Properties

friction double
getter/setter pair
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
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

Static Properties

defaultConfig SpringConfig
getter/setter pair

Static Methods

fromBouncinessAndSpeed(double bounciness, double speed) SpringConfig
Map values from the Origami POP Animation patch, which are based on a bounciness and speed value. @param bounciness bounciness of the POP Animation @param speed speed of the POP Animation @return a SpringConfig mapping to the specified POP Animation values.
fromOrigamiTensionAndFriction(double qcTension, double qcFriction) SpringConfig
A helper to make creating a SpringConfig easier with values mapping to the Origami values. @param qcTension tension as defined in the Quartz Composition @param qcFriction friction as defined in the Quartz Composition @return a SpringConfig that maps to these values