Multiplies all components by v. Existing properties of pt are maintained.
v
pt
multiplyScalar({ x:2, y:4 }, 2);// Yields: { x:4, y:8 } Copy
multiplyScalar({ x:2, y:4 }, 2);// Yields: { x:4, y:8 }
Point
Value to multiply by
Multiplies all components by
v
. Existing properties ofpt
are maintained.