Examples of Angle


Examples of gov.nasa.worldwind.geom.Angle

            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

Examples of gov.nasa.worldwind.geom.Angle

           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

Examples of gov.nasa.worldwind.geom.Angle

        }

        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

Examples of gov.nasa.worldwind.geom.Angle

           
            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

Examples of gov.nasa.worldwind.geom.Angle

           
            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

Examples of graphics.common.Angle

public class Utils {

    public Angle twoPointsAngle2D( Point p1, Point p2 ) {
        double theta = Math.atan2(p2.getRealY() - p1.getRealY(),
                p2.getRealX() - p1.getRealX() );
        Angle ret = Angles.get( theta, 0.0, 0.0 );
        return ret;
    }
View Full Code Here

Examples of net.sf.myway.base.db.Angle

    monitor.worked(1);
    final Region r = new Region();
    final double a = d / 60.0;
    final BoundingBox bb = new BoundingBox();
    r.setBoundingBox(bb);
    bb.setNorth(new Angle(scannedMap.getNorth().getVal() + a));
    bb.setSouth(new Angle(scannedMap.getSouth().getVal() - a));
    bb.setWest(new Angle(scannedMap.getWest().getVal() - a));
    bb.setEast(new Angle(scannedMap.getEast().getVal() + a));
    r.setName(scannedMap.getName());
    if (!_selection.isEmpty() && _selection instanceof IStructuredSelection) {
      final Object f = ((IStructuredSelection) _selection).getFirstElement();
      if (f instanceof Region)
        r.setParent((Region) f);
View Full Code Here

Examples of net.sf.myway.base.db.Angle

  /**
   * Calculate the box which contains all points of the object.
   */
  public void calcBoundingBox() {
    final Angle north = new Angle(_center.getNode().getLatitude().getVal());
    final Angle south = new Angle(_center.getNode().getLatitude().getVal());
    final Angle east = new Angle(_center.getNode().getLongitude().getVal());
    final Angle west = new Angle(_center.getNode().getLongitude().getVal());
    for (final MapNodeRef ref : _nodes) {
      final MapNode node = ref.getNode();
      if (north.getVal() < node.getLatitude().getVal())
        north.setVal(node.getLatitude().getVal());
      if (south.getVal() > node.getLatitude().getVal())
        south.setVal(node.getLatitude().getVal());
      if (east.getVal() < node.getLongitude().getVal())
        east.setVal(node.getLongitude().getVal());
      if (west.getVal() > node.getLongitude().getVal())
        west.setVal(node.getLongitude().getVal());
    }
    _boundingBox = new BoundingBox(north, south, west, east);
  }
View Full Code Here

Examples of net.sf.myway.base.db.Angle

      final double longMax = _lon + EDGE_LEN * _lonInc;
      final double latMax = _lat - EDGE_LEN * _latInc;
      final List<MapObject> all = MapPlugin.getBL().getObjects(
        new BoundingBox(latMax, _lat, _lon, longMax));
      _mapObjects = all == null ? new ArrayList<MapObject>() : new ArrayList<MapObject>(all);
      _log.info("fetch objects for " + new Angle(_lon) + "[" + _lon + "] "
        + new Angle(longMax) + "[" + longMax + "] " + new Angle(latMax) + "[" + latMax
        + "] " + new Angle(_lat) + "[" + _lat + "] Anzahl Objekte: " + all.size());
      // TODO Objekte klassifizieren und auf layers aufteilen.
      // fireCellChanged();
    }
    return _mapObjects;
  }
View Full Code Here

Examples of net.sf.myway.base.db.Angle

        final List<MapNodeRef> nodes = mo.getNodes();
        boolean first = true;
        final String wayName = mo.getName();
        final Path path = new Path(display);
        for (final MapNodeRef node : nodes) {
          final Angle lat = node.getNode().getLatitude();
          final Angle lon = node.getNode().getLongitude();
          final int x = (int) ((lon.getVal() - cm.getLon()) / cm.getLonInc());
          final int y = (int) ((cm.getLat() - lat.getVal()) / cm.getLatInc());
          if (first)
            path.moveTo(x, y);
          else
            path.lineTo(x, y);
          first = false;
        }
        gc.setForeground(black);
        gc.setLineWidth(5);
        gc.drawPath(path);
      }
      // Dann alle einzelnen Knoten malen, damit diese oben sind
      for (final MapObject mo : obj)
        for (final MapNodeRef r : mo.getNodes()) {
          final Angle lat = r.getNode().getLatitude();
          final Angle lon = r.getNode().getLongitude();
          final int x = (int) ((lon.getVal() - cm.getLon()) / cm.getLonInc());
          // int y = (int) (CellModel.EDGE_LEN - (lat.getVal() - cm.getLat())
          // / cm.getLatInc());
          final int y = (int) ((cm.getLat() - lat.getVal()) / cm.getLatInc());
          if (mo.equals(selO)) {
            gc.setBackground(high);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.