Esempio n. 1
0
  public HousePosition calcHousePosition(double birthLong, double birthLat) {

    double[] ac = new double[10];
    double[] positions = new double[13];

    sw.swe_houses(
        sweDate.getJulDay(), HOUSE_FLAG, birthLat, birthLong, HOUSE_SYSTEM, positions, ac);

    // System.out.println()
    HousePosition housePosition = new HousePosition(positions);
    housePosition.setSiderealTime((double) (ac[2] / 15));

    return housePosition;
  }
Esempio n. 2
0
  public static void main(String[] args) {

    SwissHelper sh = new SwissHelper(1980, 12, 11, (1 + (44.00 / 60.00) - 5.5));
    // SwissHelper sh = new SwissHelper(1960, 8, 10, (5 + (30.00 / 60.00) - 5.5));
    System.out.println(sh.getPlanetaryPosition());

    HousePosition housePos = sh.calcHousePosition(77 + (44.00 / 60.00), 11 + (22.00 / 60.00));
    System.out.println(housePos);

    for (Map.Entry<Planet, Double> e : sh.planetPos.entrySet()) {
      System.out.println(e.getKey() + " -> " + housePos.locateHouse(e.getValue()));
    }

    System.out.println(Utils.sortMap(sh.getPlanetaryPosition().entrySet(), true));
  }