1 module chipmunk.cpDampedRotarySpring;
2 
3 import chipmunk.chipmunk_types;
4 import chipmunk.chipmunk_structs;
5 
6 extern (C):
7 
8 alias double function (cpConstraint*, double) cpDampedRotarySpringTorqueFunc;
9 
10 cpBool cpConstraintIsDampedRotarySpring (const(cpConstraint)* constraint);
11 cpDampedRotarySpring* cpDampedRotarySpringAlloc ();
12 cpDampedRotarySpring* cpDampedRotarySpringInit (cpDampedRotarySpring* joint, cpBody* a, cpBody* b, cpFloat restAngle, cpFloat stiffness, cpFloat damping);
13 cpConstraint* cpDampedRotarySpringNew (cpBody* a, cpBody* b, cpFloat restAngle, cpFloat stiffness, cpFloat damping);
14 cpFloat cpDampedRotarySpringGetRestAngle (const(cpConstraint)* constraint);
15 void cpDampedRotarySpringSetRestAngle (cpConstraint* constraint, cpFloat restAngle);
16 cpFloat cpDampedRotarySpringGetStiffness (const(cpConstraint)* constraint);
17 void cpDampedRotarySpringSetStiffness (cpConstraint* constraint, cpFloat stiffness);
18 cpFloat cpDampedRotarySpringGetDamping (const(cpConstraint)* constraint);
19 void cpDampedRotarySpringSetDamping (cpConstraint* constraint, cpFloat damping);
20 cpDampedRotarySpringTorqueFunc cpDampedRotarySpringGetSpringTorqueFunc (const(cpConstraint)* constraint);
21 void cpDampedRotarySpringSetSpringTorqueFunc (cpConstraint* constraint, cpDampedRotarySpringTorqueFunc springTorqueFunc);