scale method
Contents
[
Hide
]scale
Chain a scaling transform matrix with a component scaled by s
def scale(self, s):
...
Parameter | Type | Description |
---|---|---|
s | float |
Example
from aspose.threed.utilities import TransformBuilder
tb = TransformBuilder()
tb.scale(10)
print(f"Transform Matrix: {tb.matrix}")
scale
Chain a scale transform
def scale(self, s):
...
Parameter | Type | Description |
---|---|---|
s | Vector3 |
Example
from aspose.threed.utilities import TransformBuilder, Vector3
tb = TransformBuilder()
tb.scale(Vector3(10, 10, 10))
print(f"Transform Matrix: {tb.matrix}")
scale
Chain a scaling transform matrix
def scale(self, x, y, z):
...
Parameter | Type | Description |
---|---|---|
x | float | |
y | float | |
z | float |
Example
from aspose.threed.utilities import TransformBuilder
tb = TransformBuilder()
tb.scale(10, 10, 10)
print(f"Transform Matrix: {tb.matrix}")
See Also
- module
aspose.threed.utilities
- class
TransformBuilder