public class SkyVector
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
SkyVector(Angle separation,
Angle pa)
The order of the parameters is like polar coordinates (r, theta).
|
SkyVector(double separationDegs,
double paDegs)
The order of the parameters is like polar coordinates (r, theta).
|
Modifier and Type | Method and Description |
---|---|
SkyVector |
clone()
Returns a new SkyVector object with the same data.
|
boolean |
equals(java.lang.Object other) |
Angle |
getPa()
Get position angle (anticlockwise from north).
|
Angle |
getSeparation()
Get spherical separation.
|
int |
hashCode()
Enable objects of this class to be used as hash keys.
|
java.lang.String |
toString() |
java.lang.String |
toString(Angle.Units units) |
public SkyVector(double separationDegs, double paDegs)
public Angle getSeparation()
public Angle getPa()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SkyVector clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Angle.Units units)