<!--
{
  "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/Vector3D/scaledBy(x:y:z:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So10SPVector3Da7SpatialE8scaledBy1x1y1zABSd_S2dtF"
  },
  "title" : "scaledBy(x:y:z:)"
}
-->

# scaledBy(x:y:z:)

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

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

## Parameters

`x`

The double-precision value that specifies the scale for the x-element.

`y`

The double-precision value that specifies the scale for the y-element.

`z`

The double-precision value that specifies the scale for the z-element.

## Return Value

The vector 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)