MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / interpolate

Method interpolate

src/common/overlay/levelRenderer/SUtil.js:167–173  ·  view source on GitHub ↗
(p0, p1, p2, p3, t, t2, t3)

Source from the content-addressed store, hash-verified

165
166 // inner Function
167 function interpolate(p0, p1, p2, p3, t, t2, t3) {
168 var v0 = (p2 - p0) * 0.5;
169 var v1 = (p3 - p1) * 0.5;
170 return (2 * (p1 - p2) + v0 + v1) * t3
171 + (-3 * (p1 - p2) - 2 * v0 - v1) * t2
172 + v0 * t + p1;
173 }
174 }
175
176 /**

Callers 3

mapbox-gl.jsFile · 0.80
qrFunction · 0.80
ol.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected