Method: CGLM::Mat4#transpose

Defined in:
ext/cglm/rb_cglm_mat4.c

#transpose(*args) ⇒ Object



103
104
105
106
107
108
109
# File 'ext/cglm/rb_cglm_mat4.c', line 103

VALUE rb_cglm_mat4_transpose(int argc, VALUE *argv, VALUE self) {
  VALUE dest;
  rb_scan_args(argc, argv, "01", &dest);
  if (NIL_P(dest)) dest = QUAT_NEW(ALLOC_QUAT);
  glm_mat4_transpose_to(VAL2MAT4(self), VAL2MAT4(dest));
  return dest;
}