Interpolations - Verge3D User Manual - Soft8Soft
Description: Learn how to use Interpolations in your interactive 3D apps made with Verge3D

# Interpolations

Interpolations contains spline and Bézier functions internally used by concrete curve classes.

## Methods

### # .CatmullRom(t : Float, p0 : Float, p1 : Float, p2 : Float, p3 : Float) → Float

- t — interpolation weight.
- p0, p1, p2, p3 — the points defining the spline curve.

Used internally by SplineCurve.

### # .QuadraticBezier(t : Float, p0 : Float, p1 : Float, p2 : Float) → Float

- t — interpolation weight.
- p0, p1, p2 — the starting, control and end points defining the curve.

Used internally by QuadraticBezierCurve.

### # .CubicBezier(t : Float, p0 : Float, p1 : Float, p2 : Float, p3 : Float) → Float

- t — interpolation weight.
- p0, p1, p2, p3 — the starting, control (twice) and end points defining the curve.

Used internally by CubicBezierCurve.

## Source

For more info on how to obtain the source code of this module see this page.