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

# scaledBy(x:y:z:)

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

## Declaration

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

Return Value The vector that results from scaling with the specified double-precision values.

## See Also

### Transforming a vector

- [applying(_:)](spatial/vector3d/applying(_:)-1d0mh.md)
- [applying(_:)](spatial/vector3d/applying(_:)-5y3xb.md)
- [applying(_:)](spatial/vector3d/applying(_:)-4k2qi.md)
- [unapplying(_:)](spatial/vector3d/unapplying(_:)-6vl3o.md)
- [unapplying(_:)](spatial/vector3d/unapplying(_:)-8ookb.md)
- [unapplying(_:)](spatial/vector3d/unapplying(_:)-1gzyd.md)
- [rotated(by:)](spatial/vector3d/rotated(by:)-2gcq4.md)
- [rotated(by:)](spatial/vector3d/rotated(by:)-8bwna.md)
- [scaled(by:)](spatial/vector3d/scaled(by:).md)
- [uniformlyScaled(by:)](spatial/vector3d/uniformlyscaled(by:).md)
- [sheared(_:)](spatial/vector3d/sheared(_:).md)
- [applying(_:)](spatial/vector3d/applying(_:)-8fn6a.md)
- [unapplying(_:)](spatial/vector3d/unapplying(_:)-4uxr2.md)
