/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports"],(function(t){"use strict";let n=function(){function t(t,n){this.x=t,this.y=n}var n=t.prototype;return n.clone=function(){return new t(this.x,this.y)},n.equals=function(t,n){return t===this.x&&n===this.y},n.isEqual=function(t){return t.x===this.x&&t.y===this.y},n.setCoords=function(t,n){this.x=t,this.y=n},n.normalize=function(){const t=this.x,n=this.y,i=Math.sqrt(t*t+n*n);this.x/=i,this.y/=i},n.rightPerpendicular=function(){const t=this.x;this.x=this.y,this.y=-t},n.move=function(t,n){this.x+=t,this.y+=n},n.assign=function(t){this.x=t.x,this.y=t.y},n.assignAdd=function(t,n){this.x=t.x+n.x,this.y=t.y+n.y},n.assignSub=function(t,n){this.x=t.x-n.x,this.y=t.y-n.y},n.rotate=function(t,n){const i=this.x,s=this.y;this.x=i*t-s*n,this.y=i*n+s*t},n.scale=function(t){this.x*=t,this.y*=t},n.length=function(){const t=this.x,n=this.y;return Math.sqrt(t*t+n*n)},t.distance=function(t,n){const i=n.x-t.x,s=n.y-t.y;return Math.sqrt(i*i+s*s)},t.add=function(n,i){return new t(n.x+i.x,n.y+i.y)},t.sub=function(n,i){return new t(n.x-i.x,n.y-i.y)},t}();var i;t.GeometryType=void 0,(i=t.GeometryType||(t.GeometryType={}))[i.Unknown=0]="Unknown",i[i.Point=1]="Point",i[i.LineString=2]="LineString",i[i.Polygon=3]="Polygon",t.Point=n,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
