Bioplib
Protein Structure C Library
|
Calculate cartesian coordinates from torsion angle. More...
Go to the source code of this file.
Macros | |
#define | ETA (1.07e-7) |
Functions | |
BOOL | blTorToCoor (VEC3F ant1, VEC3F ant2, VEC3F ant3, REAL bond, REAL theta, REAL torsion, VEC3F *coords) |
Calculate cartesian coordinates from torsion angle.
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
Definition in file TorCoor.c.
BOOL blTorToCoor | ( | VEC3F | ant1, |
VEC3F | ant2, | ||
VEC3F | ant3, | ||
REAL | bond, | ||
REAL | theta, | ||
REAL | torsion, | ||
VEC3F * | coords | ||
) |
[in] | ant1 | First antecedent atom coordinates |
[in] | ant2 | Second antecedent atom coordinates |
[in] | ant3 | Third antecedent atom coordinates |
[in] | bond | Bond length from ant3 to new atom |
[in] | theta | Bond angle ant2-ant3-new |
[in] | torsion | Torsion angle ant1-ant2-ant3-new |
[out] | *coords | Coordinates of new atom |
Calculates cartesian coordinates for an atom given the coordinates of three antecedant atoms and the bond length, angle and torsion angle