healpix.core
Class AngularPosition

java.lang.Object
  extended by healpix.essentials.Pointing
      extended by healpix.core.AngularPosition

public class AngularPosition
extends Pointing

An angular position theta phi

Author:
womullan

Field Summary
 
Fields inherited from class healpix.essentials.Pointing
phi, theta
 
Constructor Summary
AngularPosition()
          Default constructor
AngularPosition(double theta, double phi)
          Simple constructor init both values.
AngularPosition(Pointing ptg)
           
 
Method Summary
 SpatialVector getAsVector()
          convenience conversion.
 void init(double t, double phi)
          Inits the.
 double phi()
          Phi.
 void setPhi(double val)
          Sets the phi.
 void setTheta(double val)
          Sets the theta.
 double theta()
          Theta.
 String toString()
           
 
Methods inherited from class healpix.essentials.Pointing
equals, hashCode, normalize, normalizeTheta
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AngularPosition

public AngularPosition()
Default constructor


AngularPosition

public AngularPosition(double theta,
                       double phi)
Simple constructor init both values.

Parameters:
theta - in radians [0,Pi]
phi - in radians [0,2*Pi]

AngularPosition

public AngularPosition(Pointing ptg)
Method Detail

theta

public double theta()
Theta.

Returns:
the double

phi

public double phi()
Phi.

Returns:
the double

setTheta

public void setTheta(double val)
Sets the theta.

Parameters:
val - the new theta in radians [0,2*Pi]

setPhi

public void setPhi(double val)
Sets the phi.

Parameters:
val - the new phi in radians [0,Pi]

toString

public String toString()
Overrides:
toString in class Pointing

init

public void init(double t,
                 double phi)
Inits the.

Parameters:
t - the t
phi - the phi

getAsVector

public SpatialVector getAsVector()
convenience conversion.

Returns:
a normalized 3D vector pointing in the same direction

"Built from revision exported"