Method: CGLM::Vec3#norm

Defined in:
ext/cglm/rb_cglm_vec3.c

#normNumeric Also known as: magnitude, mag

Returns the norm (magnitude) of this vector.

Returns:



93
94
95
# File 'ext/cglm/rb_cglm_vec3.c', line 93

VALUE rb_cglm_vec3_norm(VALUE self) {
  return DBL2NUM(glm_vec3_norm(VAL2VEC3(self)));
}