Method: CP::Shape#point_query

Defined in:
ext/chipmunk/rb_cpShape.c

#point_query(point) ⇒ Object

Test if a point lies within a shape.



190
191
192
193
194
# File 'ext/chipmunk/rb_cpShape.c', line 190

static VALUE
rb_cpShapePointQuery(VALUE self, VALUE point) {
  cpBool res = cpShapePointQuery(SHAPE(self), *VGET(point));
  return res ? Qtrue : Qfalse;
}