translate method

translate(self, v)

Chain a translation transform


def translate(self, v):
    ...
ParameterTypeDescription
vVector3

Example

from aspose.threed.utilities import TransformBuilder, Vector3

tb = TransformBuilder()
tb.translate(Vector3(0, 10, 0))
print(f"Transform Matrix: {tb.matrix}")

translate(self, tx, ty, tz)

Chain a translation transform


def translate(self, tx, ty, tz):
    ...
ParameterTypeDescription
txfloat
tyfloat
tzfloat

Example

from aspose.threed.utilities import TransformBuilder

tb = TransformBuilder()
tb.translate(0, 10, 0)
print(f"Transform Matrix: {tb.matrix}")

See Also