[name]
A class containing utility functions for curves.
Note that these are all linear functions so it is neccessary to calculate seperately for
x, y (and z, w if present) components of a curve.
Methods
[method:Number interpolate]( p0, p1, p2, p3, t )
t -- interpolation weight.
p0, p1, p2, p4 -- the points defining the spline curve.
Used internally by [page:SplineCurve SplineCurve].
[method:Number tangentQuadraticBezier]( t, p0, p1, p2 )
t -- the point at which to calculate the tangent.
p0, p1, p2 -- the three points defining the quadratic Bézier curve.
Calculate the tangent at the point t on a quadratic Bézier curve given by the three points.
Used internally by [page:QuadraticBezierCurve QuadraticBezierCurve].
[method:Number tangentCubicBezier]( t, p0, p1, p2, p3 )
t -- the point at which to calculate the tangent.
p0, p1, p2, p3 -- the points defining the cubic Bézier curve.
Calculate the tangent at the point t on a cubic Bézier curve given by the four points.
Used internally by [page:CubicBezierCurve CubicBezierCurve].
[method:Number tangentSpline]( t, p0, p1, p2, p3 )
t -- the point at which to calculate the tangent.
p0, p1, p2, p3 -- the points defining the spline curve.
Calculate the tangent at the point t on a spline curve given by the four points.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]