15 |
public double latitude; |
public double latitude; |
16 |
public double longitude; |
public double longitude; |
17 |
|
|
18 |
|
public double xyz[] = new double[3]; |
19 |
|
|
20 |
public Adresse(Double latitude, Double longitude) { |
public Adresse(Double latitude, Double longitude) { |
21 |
super(latitude, longitude); |
super(latitude, longitude); |
22 |
|
|
23 |
this.latitude = latitude; |
this.latitude = latitude; |
24 |
this.longitude = longitude; |
this.longitude = longitude; |
25 |
|
|
26 |
|
xyz[0] = Math.cos(Math.toRadians(latitude)) * Math.cos(Math.toRadians(longitude)); |
27 |
|
xyz[1] = Math.cos(Math.toRadians(latitude)) * Math.sin(Math.toRadians(longitude)); |
28 |
|
xyz[2] = Math.sin(Math.toRadians(latitude)); |
29 |
|
|
30 |
} |
} |
31 |
|
|
32 |
|
|