Package chunmap.model.coord

Examples of chunmap.model.coord.Coordinate2D


   
    double z=acos(cosz(f,l));
    double tana=sinzsina(f,l)/sinzcosa(f,l);
    double a=atan(tana);
   
    return new Coordinate2D(toDegrees(z),toDegrees(a));
  }
View Full Code Here


    double cota=sinzcosa(f,l)/sinzsina(f,l);
    double x=atan(cota/cosz);
    double cosx=cos(x);
    double y=atan(cosx/cosz);
   
    return new Coordinate2D(y,x);
  }
View Full Code Here

  }

  public CPoint getMiddlePoint() {
    double x = (startPoint.getX() + endPoint.getX()) / 2d;
    double y = (startPoint.getY() + endPoint.getY()) / 2d;
    return new Coordinate2D(x, y);
  }
View Full Code Here

    double x = (startPoint.getX() + endPoint.getX() * lamuda)
        / (1 + lamuda);
    double y = (startPoint.getY() + endPoint.getY() * lamuda)
        / (1 + lamuda);
 
    return new Coordinate2D(x, y);
  }
View Full Code Here

    GeoPoint p = new GeoPoint(1, 1);
    PointBuffer pb = new PointBuffer();
    geoms.add(pb.createBuffer(p.getCoordinate(), 5));
    geoms.add(p);

    CPoint p1 = new Coordinate2D(-5, -5);
    CPoint p2 = new Coordinate2D(-10, -10);
    LineSegment lseg = new LineSegment(p1, p2);
    LineBuffer lb = new LineBuffer();
    geoms.add(lb.singleLineNoCapBuffer(lseg, 5));
    geoms.add(lseg.toLineString());
  }
View Full Code Here

            he += area;
        }
        double x = xh / he;
        double y = yh / he;

        return new Coordinate2D(x, y);
    }
View Full Code Here

    public void setCenter(CPoint value)
        {
            double dx = value.getX() - _center.getX();
            double dy = value.getY() - _center.getY();

            _center = new Coordinate2D(value.getX(), value.getY());
            _viewEnvelop.moveEnvelop(dx, dy);
            _bufferEnvelop.moveEnvelop(dx, dy);
        }
View Full Code Here

        //view
        double dx = dx0 * this.getScale();
        double dy = dy0 * this.getScale();

        this.setCenter( new Coordinate2D(x, y));
        this.setScale(this.getScale() * s);

        //world
        double xx = dx / this.getScale();
        double yy = dy / this.getScale();

        this.setCenter ( new Coordinate2D(x - xx, y - yy));
    }
View Full Code Here

        Transform t = new Transform(){
      @Override
      public CPoint convert(CPoint p) {
         double x = x2Screen(p.getX());
             double y = y2Screen(p.getY());
             return new Coordinate2D(x, y);
      }};
        return t;
    }
View Full Code Here

        Transform t = new Transform(){
      @Override
      public CPoint convert(CPoint p) {
         double x = x2World(p.getX());
             double y = y2World(p.getY());
             return new Coordinate2D(x, y);
      }};
        return t;
    }
View Full Code Here

TOP

Related Classes of chunmap.model.coord.Coordinate2D

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.