Method: Kernel#vec2
- Defined in:
- ext/chipmunk/rb_cpVect.c
#vec2(x, y) ⇒ Object
252 253 254 255 |
# File 'ext/chipmunk/rb_cpVect.c', line 252
static VALUE
rb_vec2(VALUE self, VALUE x, VALUE y) {
return VNEW(cpv(NUM2DBL(x), NUM2DBL(y)));
}
|