Method: CGLM::Vec3#rotate_axis_angle!

Defined in:
ext/cglm/rb_cglm_vec3.c

#rotate_axis_angle!(axis, angle) ⇒ self

Rotates self around axis (a Vec3) by the specified angle (in radians) using Rodrigues' rotation formula. Places the result into self and returns self.

Returns:

  • (self)


428
429
430
431
# File 'ext/cglm/rb_cglm_vec3.c', line 428

VALUE rb_cglm_vec3_rotate_axis_angle_self(VALUE self, VALUE axis, VALUE angle) {
  glm_vec3_rotate(VAL2VEC3(self), NUM2FLT(angle), VAL2VEC3(axis));
  return self;
}