Package org.aavso.tools.vstar.util.coords

Examples of org.aavso.tools.vstar.util.coords.DecInfo.toDegrees()


  // Test cases.
 
  public void testDecToDegrees1() {
    DecInfo dec = new DecInfo(EPOCH, 0, 0, 0);
    assertEquals(0.0, dec.toDegrees());
  }

  public void testDecToDegrees2() {
    DecInfo dec = new DecInfo(EPOCH, -25, 45, 3);
    String decStr = getNumToPrecision(dec.toDegrees(), PRECISION);
View Full Code Here


    assertEquals(0.0, dec.toDegrees());
  }

  public void testDecToDegrees2() {
    DecInfo dec = new DecInfo(EPOCH, -25, 45, 3);
    String decStr = getNumToPrecision(dec.toDegrees(), PRECISION);
    assertEquals(getNumToPrecision(-25.7508333333333, PRECISION), decStr);
  }

  public void testDecToDegrees3() {
    DecInfo dec = new DecInfo(EPOCH, 2, 0, 0);
View Full Code Here

    assertEquals(getNumToPrecision(-25.7508333333333, PRECISION), decStr);
  }

  public void testDecToDegrees3() {
    DecInfo dec = new DecInfo(EPOCH, 2, 0, 0);
    assertEquals(2.0, dec.toDegrees());
  }
 
  // Helpers
 
  private String getNumToPrecision(double n, int precision) {
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.