Syntax

translate($x, $y, $z)

Description

Creates a transformation that moves an object

Parameters

object name Type Type Description Mandatory Default
x double Value by which the object is to be moved in the x direction. yes
y double Value by which the object is to be moved in the y direction. yes
z double Value by which the object is to be moved in the z direction. yes double

Return value

Type: `tl.threed.core:Transformation`

Examples

Example 1

translate(100, 100, 50);

Output: Creates a transformation that moves an object by 100 in the x and y directions and by 50 in the z direction.