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

# scaledBy(x:y:z:)

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

## Declaration

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

## 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 size that results from scaling with the specified double-precision values.
