Discover Packages
github.com/ungerik/go3d
float64
qbezier2
package
Version:
v0.0.0-...-1137f6a
Opens a new window with list of versions in this module.
Published: May 2, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Length returns the length of a quadratic bezier spline from p0 to t (0,1).
Note that although this calculation is accurate at t=0, 0.5, and 1 due
to the nature of quadratic curves, it is an approximation for other values of t.
Point returns a point on a quadratic bezier spline at t (0,1).
Tangent returns a tangent on a quadratic bezier spline at t (0,1).
type T struct {
P0, P1, P2 vec2 .T
}
T holds the data to define a quadratic bezier spline.
Parse parses T from a string. See also String()
Length returns the length of a quadratic bezier spline from A.Point to t (0,1).
Point returns a point on a quadratic bezier spline at t (0,1).
String formats T as string. See also Parse().
Tangent returns a tangent on a quadratic bezier spline at t (0,1).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.