|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.geom.SkyAspect
public class SkyAspect
Defines the view of a SkySurface.
Constructor Summary | |
---|---|
SkyAspect(Projection projection,
boolean reflect)
Constructs a default aspect from a given projection. |
|
SkyAspect(Projection projection,
double[] rotmat,
double zoom,
double xoff,
double yoff)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
double |
getOffsetX()
Returns the offset in the graphical X direction of the centre of the sky drawing from the centre of the available plotting region. |
double |
getOffsetY()
Returns the offset in the graphical Y direction of the centre of the sky drawingn from the centre of the available plotting region. |
Projection |
getProjection()
Returns sky projection. |
static Projection[] |
getProjections()
Returns known projection options. |
double[] |
getRotation()
Returns rotation matrix. |
double |
getZoom()
Returns zoom factor. |
int |
hashCode()
|
boolean |
isReflected()
Indicates whether the rotation matrix includes a reflection. |
static double[] |
unitMatrix(boolean reflect)
Returns an optionally reflected unit matrix. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkyAspect(Projection projection, double[] rotmat, double zoom, double xoff, double yoff)
projection
- sky projectionrotmat
- 9-element rotation matrixzoom
- zoom factor; 1 means the sky is approximately
the same size as plot boundsxoff
- x offset of plot centre from plot bounds centre
in dimensionless units; 0 is centredyoff
- y offset of plot centre from plot bounds centre
in dimensionless units; 0 is centredpublic SkyAspect(Projection projection, boolean reflect)
projection
- sky projectionreflect
- whether longitude runs right to leftMethod Detail |
---|
public Projection getProjection()
public double[] getRotation()
public double getZoom()
public double getOffsetX()
public double getOffsetY()
public boolean isReflected()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static Projection[] getProjections()
public static double[] unitMatrix(boolean reflect)
reflect
- true for reflection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |