brepjs API Reference
    Preparing search index...

    Function rotateDrawing

    • Rotate a drawing by an angle (in degrees) around an optional center point.

      Parameters

      • drawing: Drawing

        The drawing to rotate.

      • angle: number

        Rotation angle in degrees.

      • Optionalcenter: Point2D

        Optional center of rotation (defaults to origin).

      Returns Drawing

      A new rotated Drawing.

      Drawing.rotate for the OOP equivalent.