Package models.coordinates

Examples of models.coordinates.UserCoordinates


    setMaxMagnitude((double) userInterface.getSpnMagnitude().getValue());
    sm.clearToolTips();
    double longitude = Math.toRadians((Double) userInterface.getSpnLongitude().getValue());
    double latitude = Math.toRadians((Double) userInterface.getSpnLatitude().getValue());
    GregorianDate gd = new GregorianDate(date);
    UserCoordinates uc = new UserCoordinates(longitude, latitude, Time.gregorianToJulian(gd));
    sm.setUserCoordinates(uc);
    sm.repaint();
  }
View Full Code Here


   * @param b
   * @return The visible angle (in rad) between two stars
   */
  @Override
  public double get(Astre a, Astre b) {
    UserCoordinates uc = ((SkyMap) Front.userInterface.getSkyMap()).getUserCoordinates();
    LocalHorizontalCoordinates ac = Coordinates.equatorialToLocalHorizontal(a.getCoodinates(), uc);
    LocalHorizontalCoordinates bc = Coordinates.equatorialToLocalHorizontal(b.getCoodinates(), uc);
//    double x = 2*Math.sin(Math.abs(ac.getHauteur() - bc.getHauteur())/2);
//    double y = 2*Math.sin(Math.abs(ac.getAzimut() - bc.getAzimut())/2);
    double x = Math.abs(ac.getHauteur() - bc.getHauteur());
View Full Code Here

TOP

Related Classes of models.coordinates.UserCoordinates

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.