package bezier
Import Path
gonum.org/v1/plot/tools/bezier (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
Package bezier implements 2D Bézier curve calculation.
Package-Level Type Names (only one)
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.
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.
func New(cp ...vg.Point) Curve
Package-Level Functions (only one)
NewCurve returns a Curve initialized with the control points in cp.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |