public class DihedralRotator extends Object
| Constructor and Description |
|---|
DihedralRotator(Molecule m)
creates a rotator object
|
| Modifier and Type | Method and Description |
|---|---|
Molecule |
rotateBy(double angle,
int a1,
int a2,
int a3,
int a4)
Rotates the selected dihedral by the defined angle
|
Molecule |
rotateTo(double angle,
int a1,
int a2,
int a3,
int a4)
Sets the dihedral defined by the atoms a1-a4 to the angle
|
public DihedralRotator(Molecule m)
m - for this moleculepublic Molecule rotateTo(double angle, int a1, int a2, int a3, int a4)
angle - in radiana1 - atom index in the molecule starting from 0a2 - atom index in the molecule starting from 0a3 - atom index in the molecule starting from 0a4 - atom index in the molecule starting from 0public Molecule rotateBy(double angle, int a1, int a2, int a3, int a4)
angle - in radiana1 - atom index in the molecule starting from 0a2 - atom index in the molecule starting from 0a3 - atom index in the molecule starting from 0a4 - atom index in the molecule starting from 0