/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{interpolateBezierCurve as r}from"./bezierCurveUtils.js";import{interpolateCircle as i}from"./circleUtils.js";import{deriveCircleFromCircularArc as t}from"./circularArcUtils.js";import{isCoordinate as o,isBezierCurve as s,isCircularArc as c,isEllipticArc4 as e}from"./curveUtils.js";import{deriveCircleFromEllipticArc4 as l}from"./ellipticArc4Utils.js";import{deriveEllipse as m,interpolateEllipse as f}from"./ellipticArc7Utils.js";function n(n,p,u){if(o(p))return[n[0]+u*(p[0]-n[0]),n[1]+u*(p[1]-n[1])];if(s(p))return r(n,p,u);if(c(p)){const r=t(n,p);return i(r,u)}if(e(p)){const r=l(n,p);return i(r,u)}const j=m(n,p);return f(j,u)}export{n as interpolate2D};
