AdwSpringParams* adw_spring_params_new ( double damping_ratio, double mass, double stiffness )
Creates a new
The damping value is calculated from
damping_ratio and the other two parameters.
damping_ratiois 0, the spring will not be damped and will oscillate endlessly.
damping_ratiois between 0 and 1, the spring is underdamped and will always overshoot.
damping_ratiois 1, the spring is critically damped and will reach its resting position the quickest way possible.
damping_ratiois larger than 1, the spring is overdamped and will reach its resting position faster than it can complete an oscillation.
adw_spring_params_new_full() allows to pass a raw damping value instead.
The damping ratio of the spring.
The mass of the spring.
The stiffness of the spring.
The newly created spring parameters.
|The caller of the function takes ownership of the data, and is responsible for freeing it.|