|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthealpix.essentials.Pointing
public class Pointing
An angular position on the unit sphere.
Field Summary | |
---|---|
double |
phi
Longitude in radians |
double |
theta
Colatitude in radians (0 is North Pole; Pi is South Pole) |
Constructor Summary | |
---|---|
Pointing()
Default constructor |
|
Pointing(double theta,
double phi)
Simple constructor initializing both values. |
|
Pointing(Pointing ptg)
|
|
Pointing(Vec3 vec)
Conversion from Vec3 |
|
Pointing(Zphi zphi)
Conversion from Zphi |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
void |
normalize()
Normalize theta and phi ranges |
void |
normalizeTheta()
Normalize theta range |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double theta
public double phi
Constructor Detail |
---|
public Pointing()
public Pointing(Pointing ptg)
public Pointing(double theta, double phi)
theta
- in radians [0,Pi]phi
- in radians [0,2*Pi]public Pointing(Vec3 vec)
Vec3
public Pointing(Zphi zphi)
Zphi
Method Detail |
---|
public void normalizeTheta()
public void normalize()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
"Built from revision exported" | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |