Projectionpublic class SinProjection extends SkyviewProjection
INSTANCE.| Modifier and Type | Field | Description |
|---|---|---|
static SinProjection |
INSTANCE |
Singleton instance.
|
AIT, CAR1, TAN| Modifier and Type | Method | Description |
|---|---|---|
SkyAspect |
createAspect(boolean reflect,
double[] r3,
double radiusRad,
Range[] vxyzRanges) |
Creates a SkyAspect from configuration information.
|
double[] |
cursorRotate(double[] rot0,
java.awt.geom.Point2D.Double pos0,
java.awt.geom.Point2D.Double pos1) |
Returns null - rotation not implemented.
|
SkyFov |
getFov(SkySurface surf) |
Returns the field of view represented by this aspect.
|
java.lang.String |
getProjectionDescription() |
Returns a short description of the projection.
|
java.lang.String |
getProjectionName() |
Returns the projection name.
|
boolean |
project(double rx,
double ry,
double rz,
java.awt.geom.Point2D.Double pos) |
Overridden for slight efficiency gain.
|
double[] |
projRotate(double[] rot0,
java.awt.geom.Point2D.Double pos0,
java.awt.geom.Point2D.Double pos1) |
Returns null - rotation not implemented.
|
boolean |
useRanges(boolean reflect,
double[] r3,
double radiusRad) |
Returns false - ranging not used.
|
static double[] |
verticalRotate(double delta,
double alpha,
boolean reflect) |
Rotation matrix which results in an orientation with the
viewing plane X coordinate of the north pole equal to zero.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProjection, getProjectionShape, getSkyviewProjecter, isContinuous, unprojectpublic static SinProjection INSTANCE
public java.lang.String getProjectionName()
ProjectiongetProjectionName in interface ProjectiongetProjectionName in class SkyviewProjectionpublic java.lang.String getProjectionDescription()
ProjectiongetProjectionDescription in interface ProjectiongetProjectionDescription in class SkyviewProjectionpublic boolean project(double rx,
double ry,
double rz,
java.awt.geom.Point2D.Double pos)
project in interface Projectionproject in class SkyviewProjectionrx - normalised 3D X coordinatery - normalised 3D Y coordinaterz - normalised 3D Z coordinatepos - point object into which projected dimensionless X,Y
coordinates will be written on successpublic double[] cursorRotate(double[] rot0,
java.awt.geom.Point2D.Double pos0,
java.awt.geom.Point2D.Double pos1)
SkyviewProjectioncursorRotate in interface ProjectioncursorRotate in class SkyviewProjectionrot0 - initial rotation matrixpos0 - initial cursor positionpos1 - destination cursor positionpublic double[] projRotate(double[] rot0,
java.awt.geom.Point2D.Double pos0,
java.awt.geom.Point2D.Double pos1)
SkyviewProjectionprojRotate in interface ProjectionprojRotate in class SkyviewProjectionrot0 - initial rotation matrixpos0 - initial projected positionpos1 - destination projected positionpublic boolean useRanges(boolean reflect,
double[] r3,
double radiusRad)
SkyviewProjectionuseRanges in interface ProjectionuseRanges in class SkyviewProjectionreflect - whether requested aspect will be reflectedr3 - central position of field of view (may be null)radiusRad - radius of field of view (may be NaN)SurfaceFactory.readRanges(P, uk.ac.starlink.ttools.plot2.PlotLayer[], uk.ac.starlink.ttools.plot2.data.DataStore)public SkyAspect createAspect(boolean reflect, double[] r3, double radiusRad, Range[] vxyzRanges)
ProjectioncreateAspect in interface ProjectioncreateAspect in class SkyviewProjectionreflect - whether requested aspect will be reflectedr3 - central position of field of view (may be null)radiusRad - radius of field of view (may be NaN)vxyzRanges - definite ranges for normalised X,Y,Z coordinates
acquired from dataSurfaceFactory.createAspect(P, uk.ac.starlink.ttools.plot2.config.ConfigMap, uk.ac.starlink.ttools.plot.Range[])public SkyFov getFov(SkySurface surf)
ProjectiongetFov in interface ProjectiongetFov in class SkyviewProjectionsurf - sky surface, which must be set up using this projectionpublic static double[] verticalRotate(double delta,
double alpha,
boolean reflect)
delta - rotation of pole from vertical (0..pi)alpha - rotation around pole (0..2pi)reflect - if true, alpha increases right to leftCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.