public class Pointing
extends Object
An angular position on the unit sphere.
- Author:
- Martin Reinecke
- Copyright:
- 2011 Max-Planck-Society
-
Field Summary
Fields
double
double
Colatitude in radians (0 is North Pole; Pi is South Pole)
-
Constructor Summary
Constructors
Simple constructor initializing both values.
-
Method Summary
boolean
int
void
Normalize theta and phi ranges
void
-
Field Details
-
theta
public double theta
Colatitude in radians (0 is North Pole; Pi is South Pole)
-
phi
public double phi
Longitude in radians
-
Constructor Details
-
Pointing
public Pointing()
Default constructor
-
-
Pointing
public Pointing(double theta,
double phi)
Simple constructor initializing both values.
- Parameters:
theta
- in radians [0,Pi]
phi
- in radians [0,2*Pi]
-
Pointing
public Pointing(Vec3 vec)
-
Pointing
public Pointing(Zphi zphi)
-
Method Details
-
normalizeTheta
public void normalizeTheta()
Normalize theta range
-
normalize
public void normalize()
Normalize theta and phi ranges
-
-
-