116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# File 'ext/chipmunk/rb_cpBB.c', line 116
static VALUE
rb_cpBBintersects(int argc, VALUE *argv, VALUE self) {
VALUE other, b;
rb_scan_args(argc, argv, "11", &other, &b);
if (rb_class_of(other) == c_cpBB) {
return rb_cpBBIntersectsBB(self, other);
} else if ((rb_class_of(other) == c_cpVect) && (rb_class_of(b) == c_cpVect)) {
return rb_cpBBIntersectsSegment(self, other, b);
}
rb_raise(rb_eArgError, "contains requires a BB or 2 Vect2 arguments");
return Qnil;
}
|