math
- math
- .constructor() ⇒ math
- math.cubicHermite<T>(out, a, b, c, d, f, engine) ⇒ T
.constructor() ⇒ math
math.cubicHermite<T>(out: T, a: Readonly<NumberArray>, b: Readonly<NumberArray>, c: Readonly<NumberArray>, d: Readonly<NumberArray>, f: number, engine: WonderlandEngine) ⇒ T
0.8.6+(Experimental!) Cubic Hermite spline interpolation for vector3 and quaternions.
With f == 0
, out
will be b
, if f == 1
, out
will be c.
Whether a quaternion or vector3 interpolation is intended is determined by
length of a
.
Returns: The out
parameter.
Param | Type | Description |
---|---|---|
out | T | Array to write result to. |
a | Readonly<NumberArray> | First tangent/handle. |
b | Readonly<NumberArray> | First point or quaternion. |
c | Readonly<NumberArray> | Second point or quaternion. |
d | Readonly<NumberArray> | Second handle. |
f | number | Interpolation factor in [0; 1]. |
engine | WonderlandEngine |
Template Param | Type Definition |
---|---|
T | extends NumberArray |