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

# scaledBy(x:y:z:)

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

## Declaration

```swift
func scaledBy(x: Double, y: Double, z: Double) -> ProjectiveTransform3D
```

## 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 the specified double-precision values.
