public class SkyAspect
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
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 leftpublic Projection getProjection()
public double[] getRotation()
public double getZoom()
public double getOffsetX()
public double getOffsetY()
public boolean isReflected()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Projection[] getProjections()
public static double[] unitMatrix(boolean reflect)
reflect
- true for reflectionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.