Divide two vectors.
Target vector.
The vector to divide by.
Error - When a component of value is zero.
Error - When a computed component is NaN or non-finite.
divide({ x: 4, y: 2 }, 2); // -> { x: 2, y: 1 } Copy
divide({ x: 4, y: 2 }, 2); // -> { x: 2, y: 1 }
Destination object to store the result.
const result = { x: 0, y: 0 };divide({ x: 4, y: 2 }, 2, result); // result -> { x: 2, y: 1 } Copy
const result = { x: 0, y: 0 };divide({ x: 4, y: 2 }, 2, result); // result -> { x: 2, y: 1 }
Divide two vectors.