Bioplib
Protein Structure C Library
|
Include file for angle functions. More...
Go to the source code of this file.
Macros | |
#define | _ANGLE_H_DEPRECATED |
Functions | |
REAL | blAngle (REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk) |
REAL | blPhi (REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk, REAL xl, REAL yl, REAL zl) |
REAL | blSimpleangle (REAL ang) |
REAL | blTrueAngle (REAL opp, REAL adj) |
BOOL | blTorToCoor (VEC3F ant1, VEC3F ant2, VEC3F ant3, REAL bond, REAL theta, REAL torsion, VEC3F *coords) |
Include file for angle functions.
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 angle.h.
[in] | xi | Input coordinate |
[in] | yi | Input coordinate |
[in] | zi | Input coordinate |
[in] | xj | Input coordinate |
[in] | yj | Input coordinate |
[in] | zj | Input coordinate |
[in] | xk | Input coordinate |
[in] | yk | Input coordinate |
[in] | zk | Input coordinate |
Calculates the angle between three sets of coordinates
REAL blPhi | ( | REAL | xi, |
REAL | yi, | ||
REAL | zi, | ||
REAL | xj, | ||
REAL | yj, | ||
REAL | zj, | ||
REAL | xk, | ||
REAL | yk, | ||
REAL | zk, | ||
REAL | xl, | ||
REAL | yl, | ||
REAL | zl | ||
) |
[in] | xi | Input coordinate |
[in] | yi | Input coordinate |
[in] | zi | Input coordinate |
[in] | xj | Input coordinate |
[in] | yj | Input coordinate |
[in] | zj | Input coordinate |
[in] | xk | Input coordinate |
[in] | yk | Input coordinate |
[in] | zk | Input coordinate |
[in] | xl | Input coordinate |
[in] | yl | Input coordinate |
[in] | zl | Input coordinate |
Calculates the torsion angle described by 4 sets of coordinates.
[in] | ang | An angle |
Simplifies a signed angle to an unsigned angle <=2*PI
Definition at line 95 of file simpleangle.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
[in] | opp | Opposite length |
[in] | adj | Adjacent length |
Return the +ve angle between 0 and 2PI given the opp and adj values.
Definition at line 107 of file TrueAngle.c.