Method: CGLM::Vec3#muladd_vec3
- Defined in:
- ext/cglm/rb_cglm_vec3.c
#muladd_vec3(other, dest) ⇒ Object
Multiplies self
with other
and adds that result to dest
. Equivalent to
dest += (self * other)
. Returns dest
.
dest
is not optional for this method, as it is for most others.
336 337 338 339 |
# File 'ext/cglm/rb_cglm_vec3.c', line 336
VALUE rb_cglm_vec3_muladd_vec3(VALUE self, VALUE other, VALUE dest) {
glm_vec3_muladd(VAL2VEC3(self), VAL2VEC3(other), VAL2VEC3(dest));
return dest;
}
|