package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Nov 5, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
-
func Length(p0, p1, p2, p3 *vec2.T, t float64) float64
-
func Point(p0, p1, p2, p3 *vec2.T, t float64) vec2.T
-
func Tangent(p0, p1, p2, p3 *vec2.T, t float64) vec2.T
-
type T
Length returns the length of a cubic bezier spline from p0 to t (0,1).
Point returns a point on a cubic bezier spline at t (0,1).
Tangent returns a tangent on a cubic bezier spline at t (0,1).
type T struct {
P0, P1, P2, P3 vec2.T
}
T holds the data to define a cubic bezier spline.
Parse parses T from a string. See also String()
Length returns the length of a cubic bezier spline from A.Point to t (0,1).
Point returns a point on a cubic bezier spline at t (0,1).
String formats T as string. See also Parse().
Tangent returns a tangent on a cubic bezier spline at t (0,1).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.