edu.mssm.crover.domain2d
Class Rotator

java.lang.Object
  |
  +--edu.mssm.crover.domain2d.Rotator

public class Rotator
extends java.lang.Object

Rotates the Point2D containted in an array according to a plannar rotation.


Constructor Summary
Rotator()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void rotatesAround(int index, java.awt.geom.Point2D[] positions, java.awt.geom.Point2D srcVector)
          Rotates the positions arround the specified center.
static void rotatesAround(java.awt.geom.Point2D center, java.awt.geom.Point2D[] positions, java.awt.geom.Point2D srcVector)
          Rotates the positions arround the specified center.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rotator

public Rotator()
Method Detail

rotatesAround

public static void rotatesAround(int index,
                                 java.awt.geom.Point2D[] positions,
                                 java.awt.geom.Point2D srcVector)
Rotates the positions arround the specified center. srcVector is a vector from the origin which is transformed to (0,1) during the rotation. It specifies the angle of the transformation.


rotatesAround

public static void rotatesAround(java.awt.geom.Point2D center,
                                 java.awt.geom.Point2D[] positions,
                                 java.awt.geom.Point2D srcVector)
Rotates the positions arround the specified center.


main

public static void main(java.lang.String[] args)


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.