module CP

Extended Modules

Defined in:

chipmunk/body.cr
chipmunk/collision.cr
chipmunk/constraint.cr
chipmunk/debug_draw.cr
chipmunk/query.cr
chipmunk/shape.cr
chipmunk/space.cr
chipmunk/unsafe.cr
chipmunk/vector.cr

Instance Method Summary

Instance Method Detail

def lerp(f1 : Number, f2 : Number, t : Number) : Number #

Linearly interpolate (or extrapolate) between f1 and f2 by t percent.


[View source]
def lerpconst(f1 : Number, f2 : Number, d : Number) : Number #

Linearly interpolate from f1 to f2 by no more than d.


[View source]
def v(x, y) : Vect #

Convenience function to create a Vect.


[View source]
def vzero : Vect #

Zero Vect.


[View source]