Skip to content

editorGlobalsSmoothStepInterpolation

Class: SmoothStepInterpolation

Hierarchy

SmoothStepInterpolation

Index

Constructors

Properties

Methods

Constructors

constructor

+ new SmoothStepInterpolation(smoothness: "smooth" | "smoother" | "smoothest"): SmoothStepInterpolation

Defined in src/renderContext/animations/SmoothStepInterpolation.ts:5

Parameters:

Name Type Default Description
smoothness "smooth" | "smoother" | "smoothest" "smooth" Which smoothstep function to use. "smooth" -> smoothstep, "smoother" -> smootherstep, "smoothest" -> smootheststep (see https://en.wikipedia.org/wiki/Smoothstep)

Returns: SmoothStepInterpolation

Properties

Private Readonly smoothFunction

smoothFunction: function

Defined in src/renderContext/animations/SmoothStepInterpolation.ts:5

Type declaration:

▸ (number: any): number

Parameters:

Name Type
number any

Methods

interpolate

interpolate(percentage: number): number

Overrides Interpolation.interpolate

Defined in src/renderContext/animations/SmoothStepInterpolation.ts:32

Parameters:

Name Type
percentage number

Returns: number