multiply2 method

Vector3 multiply2(
  1. Vector3 vector, [
  2. Vector3? target
])

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

Implementation

Vector3 multiply2(Vector3 vector, [Vector3? target]){
  target ??= Vector3.zero();
  target.x = vector.x * x;
  target.y = vector.y * y;
  target.z = vector.z * z;
  return target;
}