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

# scaledBy(x:y:z:)

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

## Declaration

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

## Parameters

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

## Return Value

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

## See Also

### Transforming a 3D rectangle structure

- [applying(_:)](spatial/rect3d/applying(_:)-3qdiy.md)
- [applying(_:)](spatial/rect3d/applying(_:)-5hnif.md)
- [applying(_:)](spatial/rect3d/applying(_:)-5hnif.md)
- [rotated(by:around:)](spatial/rect3d/rotated(by:around:)-3ih62.md)
- [rotated(by:around:)](spatial/rect3d/rotated(by:around:)-8g1c9.md)
- [sheared(_:)](spatial/rect3d/sheared(_:).md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-1j6g7.md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-1pbfn.md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-2he5i.md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-7eglq.md)
