etomica.action
Class AtomActionRotateBy

java.lang.Object
  extended by etomica.action.AtomActionRotateBy
All Implemented Interfaces:
AtomAction, Serializable

public class AtomActionRotateBy
extends Object
implements AtomAction, Serializable

Performs RIGHT-HANDED rotations of an atom about the x-, y-, and z-axes by the specified angles (roll, pitch, and yaw angles, respectively) in radians. To move all atoms in a molecule (or atom group), wrap an instance of this class in an AtomGroupAction.

See Also:
Serialized Form

Constructor Summary
AtomActionRotateBy(ISpace space)
           
 
Method Summary
 void actionPerformed(IAtom atom)
           
 void setAngles(double roll, double pitch, double yaw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomActionRotateBy

public AtomActionRotateBy(ISpace space)
Method Detail

actionPerformed

public void actionPerformed(IAtom atom)
Specified by:
actionPerformed in interface AtomAction

setAngles

public void setAngles(double roll,
                      double pitch,
                      double yaw)