/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{PathTransformationCursor as t}from"../../../../../symbols/cim/CIMCursor.js";import{CurveHelper as e}from"../../../../../symbols/cim/CurveHelper.js";class n{static{this.instance=null}static local(){return null===n.instance&&(n.instance=new n),n.instance}execute(t){return new s(t)}}class s extends t{constructor(t){super(t),this._curveHelper=new e}processPath(t){if(this.iteratePath=!0,t.nextPoint()){const[e,n]=[t.x,t.y];if(t.nextPoint()){const[s,r]=[t.x,t.y],i=(e+s)/2,a=(n+r)/2;this.internalPlacement.setTranslate(i,a);const c=this._curveHelper.getAngle(e,n,s,r,0);return this.internalPlacement.setRotate(c),this.internalPlacement}}return this.iteratePath=!1,null}}export{n as PrivatePlacementMultipoint};
