Discover Packages
github.com/gopherd/plot
tools
bezier
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Mar 5, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package bezier implements 2D Bézier curve calculation.
Curve implements Bezier curve calculation according to the algorithm of Robert D. Miller.
Graphics Gems 5, 'Quick and Simple Bézier Curve Drawing', pages 206-209.
NewCurve returns a Curve initialized with the control points in cp.
Curve returns a slice of vg.Point, p, filled with points along the Bézier curve described by c.
If the length of p is less than 2, the curve points are undefined. The length of p is not
altered by the call.
Point returns the point at t along the curve, where 0 ≤ t ≤ 1.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.