---
title: "smoothstep(edge0:edge1:x:)"
framework: spatial
role: symbol
role_heading: Type Method
path: "spatial/vector3dfloat/smoothstep(edge0:edge1:x:)"
---

# smoothstep(edge0:edge1:x:)

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

## Declaration

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

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

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.
