rotate()
[2D] Rotates geometry by an angle inside a sketch.
Returns: SceneObject
tip
See the guide for detailed usage examples.
Signatures
rotate(angle: number, ...targets: SceneObject[]): SceneObject
[2D] Rotates geometry by an angle inside a sketch.
| Parameter | Type | Description |
|---|---|---|
angle | number | The rotation angle in degrees |
...targets | SceneObject[] | The geometries to rotate (defaults to last object) (optional) |
rotate(angle: number, copy: boolean, ...targets: SceneObject[]): SceneObject
[2D] Rotates geometry by an angle inside a sketch, optionally making a copy.
| Parameter | Type | Description |
|---|---|---|
angle | number | The rotation angle in degrees |
copy | boolean | Whether to copy instead of move |
...targets | SceneObject[] | The geometries to rotate (defaults to last object) (optional) |
rotate(axis: AxisLike, angle: number, ...targets: SceneObject[]): SceneObject
[3D] Rotates objects around an axis by an angle.
| Parameter | Type | Description |
|---|---|---|
axis | AxisLike | The axis to rotate around |
angle | number | The rotation angle in degrees |
...targets | SceneObject[] | The objects to rotate (defaults to last object) (optional) |
rotate(axis: AxisLike, angle: number, copy: boolean, ...targets: SceneObject[]): SceneObject
[3D] Rotates objects around an axis by an angle, optionally making a copy.
| Parameter | Type | Description |
|---|---|---|
axis | AxisLike | The axis to rotate around |
angle | number | The rotation angle in degrees |
copy | boolean | Whether to copy instead of move |
...targets | SceneObject[] | The objects to rotate (defaults to last object) (optional) |