vmul method

Vec3 vmul(
  1. Vec3 vector, [
  2. Vec3? target
])

Multiply the vector with an other vector, component-wise. @param target The vector to save the result in.

Implementation

Vec3 vmul(Vec3 vector, [Vec3? target]){
  target ??= Vec3();
  target.x = vector.x * x;
  target.y = vector.y * y;
  target.z = vector.z * z;
  return target;
}