module CP
Extended Modules
Defined in:
chipmunk/body.crchipmunk/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
-
#lerp(f1 : Number, f2 : Number, t : Number) : Number
Linearly interpolate (or extrapolate) between f1 and f2 by t percent.
-
#lerpconst(f1 : Number, f2 : Number, d : Number) : Number
Linearly interpolate from f1 to f2 by no more than d.
-
#v(x, y) : Vect
Convenience function to create a
Vect
. -
#vzero : Vect
Zero
Vect
.
Instance Method Detail
def lerp(f1 : Number, f2 : Number, t : Number) : Number
#
Linearly interpolate (or extrapolate) between f1 and f2 by t percent.
def lerpconst(f1 : Number, f2 : Number, d : Number) : Number
#
Linearly interpolate from f1 to f2 by no more than d.