bezier

package
v0.0.0-...-b05aa3b Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type F32V2

type F32V2 = [2]float32

func Cubic

func Cubic(p0, p1, p2, p3 F32V2, t float32) F32V2

Cubic bezier interpolate

func CubicPoly

func CubicPoly(ctrls []F32V2, div int) (poly []F32V2)

ctrls: control points, len=3*n+1 div: div for each segment

func PolyCubic

func PolyCubic(poly []F32V2) (ctrls []F32V2)

func Quadratic

func Quadratic(p0, p1, p2 F32V2, t float32) F32V2

Quadratic bezier interpolate

func QuadraticPoly

func QuadraticPoly(ctrls []F32V2, div int) (poly []F32V2)

ctrls: control points, len=2*n+1 div: div for each segment

Jump to

Keyboard shortcuts

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