Multiply two vectors.
The target vector.
The vector to multiply by.
Error - When a computed component is NaN or non-finite.
multiply({ x: 2, y: 3 }, 2); // -> { x: 4, y: 6 } Copy
multiply({ x: 2, y: 3 }, 2); // -> { x: 4, y: 6 }
Destination object to store the result.
const result = { x: 0, y: 0 };multiply({ x: 2, y: 3 }, 2, result); // result -> { x: 4, y: 6 } Copy
const result = { x: 0, y: 0 };multiply({ x: 2, y: 3 }, 2, result); // result -> { x: 4, y: 6 }
Multiply two vectors.