scale method

scale(self, s)

Chain a scaling transform matrix with a component scaled by s


def scale(self, s):
    ...
ParameterTypeDescription
sfloat

Example

from aspose.threed.utilities import TransformBuilder

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

scale(self, s)

Chain a scale transform


def scale(self, s):
    ...
ParameterTypeDescription
sVector3

Example

from aspose.threed.utilities import TransformBuilder, Vector3

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

scale(self, x, y, z)

Chain a scaling transform matrix


def scale(self, x, y, z):
    ...
ParameterTypeDescription
xfloat
yfloat
zfloat

Example

from aspose.threed.utilities import TransformBuilder

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

See Also