easing

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HermiteSpline1D

func HermiteSpline1D(p0, v0, p1, v1, t, duration float64) float64

HermiteSpline1D returns the 1D Hermite spline value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline1DDeriv1

func HermiteSpline1DDeriv1(p0, v0, p1, v1, t, duration float64) float64

HermiteSpline1DDeriv1 returns the 1D Hermite spline first-order derivative value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline1DDeriv2

func HermiteSpline1DDeriv2(p0, v0, p1, v1, t, duration float64) float64

HermiteSpline1DDeriv2 returns the 1D Hermite spline second-order derivative value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline2D

func HermiteSpline2D(p0, v0, p1, v1 dprec.Vec2, t, duration float64) dprec.Vec2

HermiteSpline2D returns the 2D Hermite spline value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline2DDeriv1

func HermiteSpline2DDeriv1(p0, v0, p1, v1 dprec.Vec2, t, duration float64) dprec.Vec2

HermiteSpline2DDeriv1 returns the 2D Hermite spline first-order derivative value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline2DDeriv2

func HermiteSpline2DDeriv2(p0, v0, p1, v1 dprec.Vec2, t, duration float64) dprec.Vec2

HermiteSpline2DDeriv2 returns the 2D Hermite spline second-order derivative value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline3D

func HermiteSpline3D(p0, v0, p1, v1 dprec.Vec3, t, duration float64) dprec.Vec3

HermiteSpline3D returns the 3D Hermite spline value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline3DDeriv1

func HermiteSpline3DDeriv1(p0, v0, p1, v1 dprec.Vec3, t, duration float64) dprec.Vec3

HermiteSpline3DDeriv1 returns the 3D Hermite spline first-order derivative value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSpline3DDeriv2

func HermiteSpline3DDeriv2(p0, v0, p1, v1 dprec.Vec3, t, duration float64) dprec.Vec3

HermiteSpline3DDeriv2 returns the 3D Hermite spline second-order derivative value at the given time value, considering the specified position, velocity and duration parameters.

func HermiteSplineCoefficients

func HermiteSplineCoefficients(t, duration float64) (float64, float64, float64, float64)

HermiteSplineCoefficients returns the p0, v0, p1, v1 coefficients for a Hermite spline given the specified time and duration.

func HermiteSplineDeriv1Coefficients

func HermiteSplineDeriv1Coefficients(t, duration float64) (float64, float64, float64, float64)

HermiteSplineDeriv1Coefficients returns the p0, v0, p1, v1 coefficients for the first-order derivative of a Hermite spline given the specified time and duration.

func HermiteSplineDeriv2Coefficients

func HermiteSplineDeriv2Coefficients(t, duration float64) (float64, float64, float64, float64)

HermiteSplineDeriv2Coefficients returns the p0, v0, p1, v1 coefficients for the second-order derivative of a Hermite spline given the specified time and duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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