translate method
translate
Chain a translation transform
def translate(self, v):
...
Parameter | Type | Description |
---|---|---|
v | Vector3 |
Example
from aspose.threed.utilities import TransformBuilder, Vector3
tb = TransformBuilder()
tb.translate(Vector3(0, 10, 0))
print(f"Transform Matrix: {tb.matrix}")
translate
Chain a translation transform
def translate(self, tx, ty, tz):
...
Parameter | Type | Description |
---|---|---|
tx | float | |
ty | float | |
tz | float |
Example
from aspose.threed.utilities import TransformBuilder
tb = TransformBuilder()
tb.translate(0, 10, 0)
print(f"Transform Matrix: {tb.matrix}")
See Also
- module
aspose.threed.utilities
- class
TransformBuilder