Package uk.ac.starlink.pal
Class AngleDR
- java.lang.Object
-
- uk.ac.starlink.pal.AngleDR
-
public class AngleDR extends java.lang.ObjectAngle consisting of (α, δ) pairs in Radians
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAlpha()Get the first component of the angledoublegetDelta()Get the second component of the angledoublegetRadial()Get the Radial component of the anglevoidsetAlpha(double a)Set the first component of the anglevoidsetDelta(double d)Set the second component of the anglevoidsetRad(double r)Set the Radial component of the anglejava.lang.StringtoString()Get string representation of Angle as bracketed pair (or triplet)java.lang.StringtoString(int n)Get string representation of Angle to n decimal places as two (or three) numbers
-
-
-
Method Detail
-
setAlpha
public void setAlpha(double a)
Set the first component of the angle- Parameters:
a- α
-
setDelta
public void setDelta(double d)
Set the second component of the angle- Parameters:
d- δ
-
setRad
public void setRad(double r)
Set the Radial component of the angle- Parameters:
r- Radial
-
getAlpha
public double getAlpha()
Get the first component of the angle- Returns:
- α
-
getDelta
public double getDelta()
Get the second component of the angle- Returns:
- δ
-
getRadial
public double getRadial()
Get the Radial component of the angle- Returns:
- Radial
-
toString
public java.lang.String toString(int n)
Get string representation of Angle to n decimal places as two (or three) numbers- Parameters:
n- Number of decimal places- Returns:
- String representation
-
toString
public java.lang.String toString()
Get string representation of Angle as bracketed pair (or triplet)- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation
-
-