MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / interpolate

Function interpolate

libs/echarts/echarts.simple.js:15893–15899  ·  view source on GitHub ↗

* @inner

(p0, p1, p2, p3, t, t2, t3)

Source from the content-addressed store, hash-verified

15891 * @inner
15892 */
15893function interpolate(p0, p1, p2, p3, t, t2, t3) {
15894 var v0 = (p2 - p0) * 0.5;
15895 var v1 = (p3 - p1) * 0.5;
15896 return (2 * (p1 - p2) + v0 + v1) * t3
15897 + (-3 * (p1 - p2) - 2 * v0 - v1) * t2
15898 + v0 * t + p1;
15899}
15900
15901/**
15902 * @alias module:zrender/shape/util/smoothSpline

Callers 2

smoothSplineFunction · 0.70
SUtil_smoothSplineMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected