Contents

smoothstep(edge0:edge1:x:)

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

Declaration

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.