Translates a single point or array of points by a given spatial vector.
If copy is true, generates multiple translated copies iteratively.
copy
The Point or array of Points to translate.
The spatial delta to apply to X, Y, and Z.
(Optional) If true, return multiple copies instead of moving in place.
(Optional) Number of copies to generate if copy is true.
The translated identical geometry structure.
const v = new Vector({ x: 10, y: 0 });const line = [new Point({x:0,y:0}), new Point({x:0,y:10})];const moved = move(line, v); // both points are translated 10mm in X Copy
const v = new Vector({ x: 10, y: 0 });const line = [new Point({x:0,y:0}), new Point({x:0,y:10})];const moved = move(line, v); // both points are translated 10mm in X
Translates a single point or array of points by a given spatial vector.
If
copyis true, generates multiple translated copies iteratively.