Skip to main content

rotate()

[2D] Rotates geometry by an angle inside a sketch.

Returns: SceneObject

tip

See the guide for detailed usage examples.

Signatures

rotate(angle: NumberParam, ...targets: SceneObject[]): IRotate

[2D] Rotates geometry by an angle inside a sketch.

ParameterTypeDescription
angleNumberParamThe rotation angle in degrees
...targetsSceneObject[]The geometries to rotate (defaults to last object) (optional)

rotate(angle: NumberParam, copy: BooleanParam, ...targets: SceneObject[]): IRotate

[2D] Rotates geometry by an angle inside a sketch, optionally making a copy.

ParameterTypeDescription
angleNumberParamThe rotation angle in degrees
copyBooleanParamWhether to copy instead of move
...targetsSceneObject[]The geometries to rotate (defaults to last object) (optional)

rotate(axis: AxisLike, angle: NumberParam, ...targets: SceneObject[]): IRotate

[3D] Rotates objects around an axis by an angle.

ParameterTypeDescription
axisAxisLikeThe axis to rotate around
angleNumberParamThe rotation angle in degrees
...targetsSceneObject[]The objects to rotate (defaults to last object) (optional)

rotate(axis: AxisLike, angle: NumberParam, copy: BooleanParam, ...targets: SceneObject[]): IRotate

[3D] Rotates objects around an axis by an angle, optionally making a copy.

ParameterTypeDescription
axisAxisLikeThe axis to rotate around
angleNumberParamThe rotation angle in degrees
copyBooleanParamWhether to copy instead of move
...targetsSceneObject[]The objects to rotate (defaults to last object) (optional)