---
title: "scaledBy(x:y:z:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/affinetransform3d/scaledby(x:y:z:)"
---

# scaledBy(x:y:z:)

Returns a transform that results from scaling with specified double-precision values.

## Declaration

```swift
func scaledBy(x: Double = 1, y: Double = 1, z: Double = 1) -> AffineTransform3D
```

## Parameters

- `x`: The double-precision value that specifies the scale along the width dimension.
- `y`: The double-precision value that specifies the scale along the height dimension.
- `z`: The double-precision value that specifies the scale along the depth dimension.

## Return Value

Return Value The transform that results from scaling with specified double-precision values.

## See Also

### Transforming a 3D affine transform structure

- [Axis3D](spatial/axis3d.md)
- [AxisWithFactors](spatial/axiswithfactors.md)
- [changeBasis(from:to:)](spatial/affinetransform3d/changebasis(from:to:).md)
- [flip(along:)](spatial/affinetransform3d/flip(along:).md)
- [flipped(along:)](spatial/affinetransform3d/flipped(along:).md)
- [inverse](spatial/affinetransform3d/inverse.md)
- [sheared(_:)](spatial/affinetransform3d/sheared(_:).md)
