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