cpBBContainsBB   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpBB.xtm

Implementation

(bind-func cpBBContainsBB
  (lambda (bb:cpBB other:cpBB)
    (convert (and
        (<= (tref bb 0) (tref other 0))
        (>= (tref bb 2) (tref other 2))
        (<= (tref bb 1) (tref other 1))
        (>= (tref bb 3) (tref other 3)))
      cpBool)))


Back to Index