Method: CGLM::Mat3#invert!

Defined in:
ext/cglm/rb_cglm_mat3.c

#invert!self

Calcaultes the inverse of self, modifies self in-place, and returns self.

Returns:

  • (self)


120
121
122
123
# File 'ext/cglm/rb_cglm_mat3.c', line 120

VALUE rb_cglm_mat3_inverse_self(VALUE self) {
  glm_mat3_inv(VAL2MAT3(self), VAL2MAT3(self));
  return self;
}