Method: CGLM::Vec4#flip_signs!

Defined in:
ext/cglm/rb_cglm_vec4.c

#flip_signs!self Also known as: invert!, negate!

Flips the sign of each component, modifying self in-place. Returns self.

Returns:

  • (self)


367
368
369
370
# File 'ext/cglm/rb_cglm_vec4.c', line 367

VALUE rb_cglm_vec4_flip_signs_self(VALUE self) {
  glm_vec4_flipsign(VAL2VEC4(self));
  return self;
}