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