stsci.projection
Class Geometry

java.lang.Object
  |
  +--stsci.projection.Geometry

public class Geometry
extends java.lang.Object


Constructor Summary
Geometry()
           
 
Method Summary
static float calculateRotation(java.awt.Point pA, java.awt.Point pC, SkyImage masterImage, SkyImage secondaryImage)
          use cosine rule to work out the angle C
static float calculateRotation(SkyImage masterImage, SkyImage secondaryImage, java.awt.Point center)
          take grid of points to work out rotation angle by average
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geometry

public Geometry()
Method Detail

calculateRotation

public static float calculateRotation(SkyImage masterImage,
                                      SkyImage secondaryImage,
                                      java.awt.Point center)
take grid of points to work out rotation angle by average

calculateRotation

public static float calculateRotation(java.awt.Point pA,
                                      java.awt.Point pC,
                                      SkyImage masterImage,
                                      SkyImage secondaryImage)
use cosine rule to work out the angle C