package
Version:
v0.0.0-...-1e8ba1f
Opens a new window with list of versions in this module.
Published: Apr 12, 2016
License: GPL-3.0, MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Length(pointA, tangentA, pointB, tangentB *vec2.T, t float32) float32
-
func Point(pointA, tangentA, pointB, tangentB *vec2.T, t float32) vec2.T
-
func Tangent(pointA, tangentA, pointB, tangentB *vec2.T, t float32) vec2.T
-
type PointTangent
-
type T
Length returns the length of a hermit spline from pointA to t (0,1).
Point returns a point on a hermit spline at t (0,1).
Tangent returns a tangent on a hermit spline at t (0,1).
type PointTangent struct {
Point vec2.T
Tangent vec2.T
}
PointTangent contains a point and a tangent at that point.
This is a helper sub-struct for T.
T holds the data to define a hermit spline.
Parse parses T from a string. See also String()
Length returns the length of a hermit spline from A.Point to t (0,1).
Point returns a point on a hermit spline at t (0,1).
String formats T as string. See also Parse().
Tangent returns a tangent on a hermit spline at t (0,1).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.