etomica.action
Class AtomActionRotateBy
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomActionRotateBy
public AtomActionRotateBy(ISpace space)
actionPerformed
public void actionPerformed(IAtom atom)
- Specified by:
actionPerformed in interface AtomAction
setAngles
public void setAngles(double roll,
double pitch,
double yaw)