Physical parameters of a spring for SpringAnimation.
Any spring can be described by three parameters: mass, stiffness and damping.
An undamped spring will produce an oscillatory motion which will go on forever.
The frequency and amplitude of the oscillations will be determined by the stiffness (how "strong" the spring is) and its mass (how much "inertia" it has).
If damping is larger than 0, the amplitude of that oscillating motion will exponientally decrease over time. If that damping is strong enough that the spring can’t complete a full oscillation, it’s called an overdamped spring.
If we the spring can oscillate, it’s called an underdamped spring.
The value between these two behaviors is called critical damping; a critically damped spring will comes to rest in the minimum possible time without producing oscillations.
The damping can be replaced by damping ratio, which produces the following springs:
As such
Gets the damping of self.
Passed: a <AdwSpringParams>.
spring params
Returned: a real number.
the damping
Gets the damping ratio of self.
Passed: a <AdwSpringParams>.
spring params
Returned: a real number.
the damping ratio
Gets the mass of self.
Passed: a <AdwSpringParams>.
spring params
Returned: a real number.
the mass
Gets the stiffness of self.
Passed: a <AdwSpringParams>.
spring params
Returned: a real number.
the stiffness
Creates a new <AdwSpringParams> from
mass, stiffness and damping-ratio.
The damping value is calculated from damping-ratio and the other two parameters.
SpringParams.new_full allows to pass a raw damping value instead.
Passed: a real number.
the damping ratio of the spring
Passed: a real number.
the mass of the spring
Passed: a real number.
the stiffness of the spring
Returned: a <AdwSpringParams>.
the newly created spring parameters
Creates a new <AdwSpringParams> from
mass, stiffness and damping.
See SpringParams.new for a simplified constructor using damping
ratio instead of damping.
Passed: a real number.
the damping of the spring
Passed: a real number.
the mass of the spring
Passed: a real number.
the stiffness of the spring
Returned: a <AdwSpringParams>.
the newly created spring parameters
Increases the reference count of self.
Passed: a <AdwSpringParams>.
spring params
Returned: a <AdwSpringParams>.
self
Decreases the reference count of self.
If the last reference is dropped, the structure is freed.
Passed: a <AdwSpringParams>.
spring params