<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/ProjectiveTransform3D/scaledBy(x:y:z:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So23SPProjectiveTransform3Da7SpatialE8scaledBy1x1y1zABSd_S2dtF"
  },
  "title" : "scaledBy(x:y:z:)"
}
-->

# scaledBy(x:y:z:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)