/* */ static VALUE Vector2_Negate( VALUE self ) { VALUE x = rb_funcall( self, rb_intern( "x" ), 0 ); VALUE y = rb_funcall( self, rb_intern( "y" ), 0 ); VALUE negatedX = rb_funcall( x, rb_intern( "-@" ), 0 ); VALUE negatedY = rb_funcall( y, rb_intern( "-@" ), 0 ); return rb_funcall( globalVector2Class, rb_intern( "new" ), 2, negatedX, negatedY ); }