"use strict";var Viewpoint=function(t,i,n,e,o){this.position=t,this.position2dInMap=new THREE.Vector2,this.angleHorizontal=i,this.angleVertical=n,this.activationCallback=o,Util.isInitialized(e)||(e="unspecified"),this.name=e,this.caption=this.name.toUpperCase(),this.snapshotImageFilename=Preferences.Gui.getLocationSnapshotFilepath(this.name)};Viewpoint.computePositions2dInMap=function(t){for(var i=0;i<Preferences.Viewpoint.getPublicViewpoints().length;i++)Preferences.Viewpoint.getPublicViewpoints()[i].computePosition2dInMap(t)},Viewpoint.prototype.computePosition2dInMap=function(t){t.computeScreenCoordinates(this.position,this.position2dInMap),this.position2dInMap.y=t.height-this.position2dInMap.y},Viewpoint.prototype.getPosition=function(){return this.position.clone()},Viewpoint.prototype.getAngleHorizontal=function(){return this.angleHorizontal},Viewpoint.prototype.getAngleVertical=function(){return this.angleVertical},Viewpoint.prototype.getName=function(){return this.name},Viewpoint.prototype.getCaption=function(){return this.caption},Viewpoint.prototype.getSnapshotImageFilename=function(){return this.snapshotImageFilename},Viewpoint.prototype.setAsCurrentViewpoint=function(){appMain.getCurrentEntity().camera.switchViewpoint(this),Util.isInitialized(this.activationCallback)&&this.activationCallback()};