MotionRanges class final

Constructors

MotionRanges({IntRange? depthCdp, List<int> releaseStiffnessPermille = const [900, 1000, 1100], int bounceJitterPermille = 0, int maxSettleMs = 360, int maxOvershootPermille = 100})
const

Properties

bounceJitterPermille → int
± bounce (ζ) jitter × 1000; bouncy families only.
final
depthCdp → IntRange?
Depth range in dp × 100, sampled on whole-dp steps (null = fixed).
final
hashCode → int
The hash code for this object.
no setterinherited
maxOvershootPermille → int
Release overshoot ceiling × 1000.
final
maxSettleMs → int
Release settle ceiling.
final
releaseStiffnessPermille → List<int>
Release stiffness multipliers × 1000, picked uniformly.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
vary(MotionSpec base, Rng rng) → MotionSpec
Applies seeded variation to base from rng (the motion stream), clamped so overshoot ≤ 10 % and settle (≈ 4/(ζ√k)) ≤ maxSettleMs. Integer arithmetic only.

Operators

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

Constants

minZetaFor10PercentOvershoot → const int
Smallest ζ × 1000 whose overshoot exp(−ζπ/√(1−ζ²)) is ≤ 10 %.