public class TangentPlaneTransformer extends Object
This object can deal with the data->view transformation
represented by a SkyDataGeom
.
The input tangent position is in view coordinates, but the
input displacements on that plane correspond to displacements
along the axes of data coordinates. That may seem baroque, but
it corresponds to what sky-based MultiPointCoordSet
implementations are likely to be able to supply.
Constructor and Description |
---|
TangentPlaneTransformer(double[] xyz0,
SkyDataGeom geom)
Constructs a transformer for the tangent plane centred at a given
normalised vector.
|
Modifier and Type | Method and Description |
---|---|
void |
displace(double xi,
double eta,
double[] xyz1)
Determines the normalised 3D position in view coordinates
of a position at given coordinates in this object's tangent plane.
|
public TangentPlaneTransformer(double[] xyz0, SkyDataGeom geom)
xyz0
- normalised 3D coordinates in the view coordinate system
at the centre of tangent planegeom
- geom object representing data->view coordinate system
rotationpublic void displace(double xi, double eta, double[] xyz1)
xi
- horizontal displacement in data coordinates
from tangent plane origin (tangent point)eta
- vertical displacement in data coordinates
from tangent plane origin (tangent point)xyz1
- 3-element array into which normalised 3D coordinates
of result position in view coordinates are writtenCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.