translate()
Translates objects along the X axis.
Returns: SceneObject
tip
See the guide for detailed usage examples.
Signatures
translate(x: NumberParam, ...targets: SceneObject[]): ITranslate
Translates objects along the X axis.
| Parameter | Type | Description |
|---|---|---|
x | NumberParam | The X distance |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |
translate(x: NumberParam, copy: BooleanParam, ...targets: SceneObject[]): ITranslate
Translates objects along the X axis, optionally making a copy.
| Parameter | Type | Description |
|---|---|---|
x | NumberParam | The X distance |
copy | BooleanParam | Whether to copy instead of move |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |
translate(x: NumberParam, y: NumberParam, ...targets: SceneObject[]): ITranslate
Translates objects along the X and Y axes.
| Parameter | Type | Description |
|---|---|---|
x | NumberParam | The X distance |
y | NumberParam | The Y distance |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |
translate(x: NumberParam, y: NumberParam, copy: BooleanParam, ...targets: SceneObject[]): ITranslate
Translates objects along the X and Y axes, optionally making a copy.
| Parameter | Type | Description |
|---|---|---|
x | NumberParam | The X distance |
y | NumberParam | The Y distance |
copy | BooleanParam | Whether to copy instead of move |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |
translate(x: NumberParam, y: NumberParam, z: NumberParam, ...targets: SceneObject[]): ITranslate
Translates objects along all three axes.
| Parameter | Type | Description |
|---|---|---|
x | NumberParam | The X distance |
y | NumberParam | The Y distance |
z | NumberParam | The Z distance |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |
translate(x: NumberParam, y: NumberParam, z: NumberParam, copy: BooleanParam, ...targets: SceneObject[]): ITranslate
Translates objects along all three axes, optionally making a copy.
| Parameter | Type | Description |
|---|---|---|
x | NumberParam | The X distance |
y | NumberParam | The Y distance |
z | NumberParam | The Z distance |
copy | BooleanParam | Whether to copy instead of move |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |
translate(distance: PointLike, ...targets: SceneObject[]): ITranslate
Translates objects by a point-like offset.
| Parameter | Type | Description |
|---|---|---|
distance | PointLike | The offset as a point |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |
translate(distance: PointLike, copy: boolean, ...targets: SceneObject[]): ITranslate
Translates objects by a point-like offset, optionally making a copy.
| Parameter | Type | Description |
|---|---|---|
distance | PointLike | The offset as a point |
copy | boolean | Whether to copy instead of move |
...targets | SceneObject[] | The objects to translate (defaults to last object) (optional) |