interpolation

package
v0.0.0-...-af67c94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bezier

func Bezier(p1, p2, p3, p4 []float32, t float32) []float32

func Bezier1d

func Bezier1d(p1, p2, p3, p4, t float32) float32

func Bezier2d

func Bezier2d(p1, p2, p3, p4 [2]float32, t float32) [2]float32

func Bezier3d

func Bezier3d(p1, p2, p3, p4 [3]float32, t float32) [3]float32

func Cosine1D

func Cosine1D(a, b, t float32) float32

func CubicCatmulRomSpline1D

func CubicCatmulRomSpline1D(p1, p2, p3, p4 float32, t float32) float32

func CubicHermiteSpline1D

func CubicHermiteSpline1D(
	p1, p2,
	p3, p4,
	t,
	tension,
	bias float32) float32

Tension: 0 is high, 0.5 normal, 1 is low Bias: 0 is even,

positive is towards first segment,
negative towards the other

func CubicSpline1D

func CubicSpline1D(p1, p2, p3, p4, t float32) float32

func Lerp

func Lerp(a, b, t float32) float32

Linear interpolation between a and b. t = 0..1

func LerpD

func LerpD(a, d, t float32) float32

Linear interpolation from a in interval d. t = 0..1

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL