FullControl JS
    Preparing search index...

    Function move

    • Translates a single point or array of points by a given spatial vector.

      If copy is true, generates multiple translated copies iteratively.

      Parameters

      • geometry: any[] | Point

        The Point or array of Points to translate.

      • vector: Vector

        The spatial delta to apply to X, Y, and Z.

      • copy: boolean = false

        (Optional) If true, return multiple copies instead of moving in place.

      • copy_quantity: number = 2

        (Optional) Number of copies to generate if copy is true.

      Returns any[] | Point

      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