|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.math.SphereTiles
public class SphereTiles
This class calculates equal-area sized almost half-sphere tiles and tries to arrange them in the following way:
Δh_0*sin(Δh_0/2)=A_sphere/N
| Nested Class Summary | |
|---|---|
static class |
SphereTiles.Test
Test class. |
| Field Summary | |
|---|---|
private double |
area
The area per tile. |
private double |
dh0
The principle height, from 2hsin(h/2)=area. |
private List |
tiles
Filled on construct, these are centers and d(az) dh of tiles. |
| Fields inherited from interface vec_math.PI |
|---|
HOUR, PIHALF, PITWO, RADIAN |
| Constructor Summary | |
|---|---|
SphereTiles(int n,
double h0)
Constructs a new tiling of the part of the sphere above the minimal height h_0. |
|
| Method Summary | |
|---|---|
double |
getDistanceToTile(int index,
double azrad,
double hrad)
Returns the distance of the point on the sphere indicated by azimuth and altitude to the center of the tile given by the index. |
int |
getNumberOfTiles()
Returns the number of tiles within this sky sphere. |
VectorG |
getTile(int index)
Retruns the tile with the given index. |
int |
getTileIndex(double azrad,
double hrad)
This method scans all tiles in this sphere and returns the index of the tile the requested position is in. |
private static boolean |
probeTile(VectorG v,
double az,
double h)
Probes if a point on the sky lies within the tile specified by the 4-dimensional vector passed over. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private List tiles
private double area
private double dh0
| Constructor Detail |
|---|
public SphereTiles(int n,
double h0)
n - Number of tilesh0 - Starting height above the horizon, in radian.| Method Detail |
|---|
public int getNumberOfTiles()
public int getTileIndex(double azrad,
double hrad)
azrad - The azimuth to probe in radians.hrad - The altitude to probe in radians.
public double getDistanceToTile(int index,
double azrad,
double hrad)
azrad - The azimuth to probe in radians.hrad - The altitude to probe in radians.index - The tile index.public VectorG getTile(int index)
private static boolean probeTile(VectorG v,
double az,
double h)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||