Google

/*
 * Does the given point lie within the polygon?
 *
 * Example:
 *   if poly.contains? 12, 5
 *     puts 'yes'
 *   else
 *     puts 'no'
 *   end
 *
 */
static VALUE poly_contains(int argc, char *argv, VALUE self) {