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

# scaledBy(x:y:z:)

Returns the transform scaled by the specified values.

## Declaration

```swift
func scaledBy(x: Float = 1, y: Float = 1, z: Float = 1) -> AffineTransform3DFloat
```

## Parameters

- `x`: The scale factor on the x dimension.
- `y`: The scale factor on the y dimension.
- `z`: The scale factor on the z dimension.

## Discussion

Discussion Returns The scaled transform.
