UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 647 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{copy as t,sub as i,add as s,scale as r}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as o}from"../../../../../core/libs/gl-matrix-2/factories/vec3f32.js";import{create as e}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";class h{constructor(t){this._low=e(),this._high=e(),t&&this.set(t)}get low(){return this._low}get high(){return this._high}set(s){t(this._low,t(c,s));const r=i(c,s,this._low);t(this._high,r)}get(t){return s(t,this._low,this._high)}getLowScaled(t){return r(t,this._low,1)}}const c=o();export{h as TwoVectorPosition};