uk.ac.starlink.ttools.plot2.layer
Class TangentPlaneTransformer

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.TangentPlaneTransformer

public class TangentPlaneTransformer
extends Object

Performs normalised 3D coordinate transformations equivalent to displacements from the origin in the tangent plane.

Since:
21 Feb 2013
Author:
Mark Taylor

Constructor Summary
TangentPlaneTransformer(double[] xyz0)
          Constructs a transformer for the tangent plane centred at a given normalised vector.
 
Method Summary
 void displace(double xi, double eta, double[] xyz1)
          Determines the normalised 3D coordinates of a position at a given coordinates in this object's tangent plane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TangentPlaneTransformer

public TangentPlaneTransformer(double[] xyz0)
Constructs a transformer for the tangent plane centred at a given normalised vector.

Parameters:
xyz0 - normalised 3D coordinates at centre of tangent plane
Method Detail

displace

public void displace(double xi,
                     double eta,
                     double[] xyz1)
Determines the normalised 3D coordinates of a position at a given coordinates in this object's tangent plane.

Parameters:
xi - horizontal displacement from tangent plane origin (tangent point)
eta - vertical displacement from tangent plane origin (tangent point)
xyz1 - 3-element array into which normalised 3D coordinates of result position are written


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.