Package gov.nasa.worldwind.geom

Examples of gov.nasa.worldwind.geom.Angle


    private void _initializePolygon_(WorldWindow wwd, Path polygon, boolean fitShapeToViewport)
    {
        // Creates a rectangle in the center of the viewport. Attempts to guess at a reasonable size and height.

        Position position = GfrShapeUtils.s_getNewShapePosition(wwd);
        Angle heading = GfrShapeUtils.s_getNewShapeHeading(wwd, true);
       
        double heightInMeters = fitShapeToViewport?
            GfrShapeUtils.s_getViewportScaleFactor(wwd):
                GfrFactoryObjShpPlnAbs._DBL_DEFAULT_SHAPE_SIZE_METERS;
    
View Full Code Here


    private void _initializePolygon_(WorldWindow wwd, Polyline polygon, boolean fitShapeToViewport)
    {
        // Creates a rectangle in the center of the viewport. Attempts to guess at a reasonable size and height.

        Position position = GfrShapeUtils.s_getNewShapePosition(wwd);
        Angle heading = GfrShapeUtils.s_getNewShapeHeading(wwd, true);
       
        double heightInMeters = fitShapeToViewport?
            GfrShapeUtils.s_getViewportScaleFactor(wwd):
                GfrFactoryObjShpPlnAbs._DBL_DEFAULT_SHAPE_SIZE_METERS;
    
View Full Code Here

            return new BasicPointOfInterest(LatLon.fromDegrees(d1, d2));
        }
        else //may be in DMS
        {
            Angle aLat = Angle.fromDMS(strsCoord[0].trim());
            Angle aLon = Angle.fromDMS(strsCoord[1].trim());

            return new BasicPointOfInterest(LatLon.fromDegrees(aLat.getDegrees(), aLon.getDegrees()));
        }
    }
View Full Code Here

            this.haveTargets = true;
        }

        protected boolean valuesMeetCriteria(Position centerPos, double zoom)
        {
            Angle cd = LatLon.greatCircleDistance(this.view.getCenterPosition(), centerPos);
            double ed = Math.abs(this.view.getCenterPosition().getElevation() - centerPos.getElevation());
            double zd = Math.abs(this.view.getZoom() - zoom);

            return cd.degrees < LOCATION_EPSILON
                && ed < ALTITUDE_EPSILON
View Full Code Here

           boolean blnIsPoint)
   {
      BasicOrbitView view = (BasicOrbitView) super.getView();


      Angle heading = Angle.fromDegrees(0.0);
      Angle pitch = Angle.fromDegrees(30.0);

      //if (! blnIsPoint)
      //    dblZoom *= 10.d;

      view.addPanToAnimator(posCenter, heading, pitch, dblZoom, true);
View Full Code Here

        }

        protected void updateState(DrawContext dc)
        {
            // Increment the angle by a fixed increment each frame.
            Angle increment = this.getIncrement();
            increment = this.adjustAngleIncrement(dc, increment);
            this.setAngle(this.getAngle().add(increment));

            // Fire a property change to force a repaint.
            dc.getView().firePropertyChange(AVKey.VIEW, null, dc.getView());
View Full Code Here

           
            GfrRndSurfacePolylineWisYesMloAbs rnd = (GfrRndSurfacePolylineWisYesMloAbs) objRndChildCur;
           
            Iterator<? extends LatLon> itr = rnd.getLocations().iterator();
           
            Angle angLatitudeSource = posSource.getLatitude();
            Angle angLongitudeSource = posSource.getLongitude();
           
            // ---
           
            LatLon llnTargetCandidate = itr.next();
            boolean blnGotIt = false;
View Full Code Here

           
            GfrRndSurfacePolylineWisYesMloAbs rnd = (GfrRndSurfacePolylineWisYesMloAbs) objRndChildCur;
           
            Iterator<? extends LatLon> itr = rnd.getLocations().iterator();
           
            Angle angLatitudeSource = posSource.getLatitude();
            Angle angLongitudeSource = posSource.getLongitude();
           
            // ---
           
            LatLon llnSourceCandidate = null;
           
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.geom.Angle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.