Method: CGLM::Vec3#rotate_mat4!

Defined in:
ext/cglm/rb_cglm_vec3.c

#rotate_mat4!(mat) ⇒ self

Rotate self by the given rotation or affine matrix. Places the result in self and returns self.

  • mat format should be (no perspective):

    a b c x e f g y i j k z 0 0 0 w

Returns:

  • (self)


466
467
468
469
# File 'ext/cglm/rb_cglm_vec3.c', line 466

VALUE rb_cglm_vec3_rotate_mat4_self(VALUE self, VALUE matrix) {
  glm_vec3_rotate_m4(VAL2MAT4(matrix), VAL2VEC3(self), VAL2VEC3(self));
  return self;
}