calCo: Calculate Cartesian coordinates for 1-4 bonded atoms
Description
Consider atoms A-B-C-D forming a dihedral.
Given coordinates for atoms A,B,C of the dihedral,
the dihedral angle, bond angle, and bond length, calculate the Cartesian coordinates
of atom D in the dihedral.
Usage
calCo(prev_atoms, length, bAngle, tAngle)
Arguments
prev_atoms
a 3x3 matrix of coordinates for atoms A-B-C in dihedral, listed by row
length
bond length between atoms C-D in dihedral
bAngle
planar bond angle between atoms B-C-D (in degrees)
tAngle
dihedral angle formed by atoms A-B-C-D (in degrees)
Value
Returns the vector of coordinates for the fourth atom in the dihedral