<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Vector3D/smoothstep(edge0:edge1:x:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So10SPVector3Da7SpatialE10smoothstep5edge05edge11xA2B_A2BtFZ"
  },
  "title" : "smoothstep(edge0:edge1:x:)"
}
-->

# smoothstep(edge0:edge1:x:)

Returns a Spatial vector that represents the smooth interpolation at `x` between two vectors.

```
static func smoothstep(edge0: Vector3D, edge1: Vector3D, x: Vector3D) -> Vector3D
```

## Parameters

`edge0`

The lower edge of the interpolation function.

`edge1`

The upper edge of the interpolation function.

`x`

The value that the function interpolates at.

## Return Value

A new vector with each element set to `0` if `x <= edge0`, `1` if `x >= edge1`,
and a Hermite interpolation between `0` and `1` if `edge0 < x < edge1`.

---

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)