Bioplib
Protein Structure C Library
|
Calculate angles, torsions, etc. More...
Go to the source code of this file.
Functions | |
REAL | blAngle (REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk) |
Calculate angles, torsions, etc.
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.
These routines return angles and torsion angles. The definition of a torsion angle is the chemical definition: i.e. Assuming the atoms are co-planar:
A---B A---B | = 0.0 | = 180.0 | | D---C C---D
REAL angle(xi,yi,zi,xj,yj,zj,xk,yk,zk) Input: REAL xi,yi,zi Input coordinates Input: xj,yj,zj Input: xk,yk,zk Returns: REAL The angle between the 3 atoms REAL phi(xi,yi,zi,xj,yj,zj,xk,yk,zk,xl,yl,zl) Input: REAL xi,yi,zi Input coordinates Input: xj,yj,zj Input: xk,yk,zk Input: xl,yl,zl Returns: REAL The torsion angle between the 4 atoms REAL simpleang(ang) Input: REAL ang An angle Returns: REAL Simplified angle Simplifies a signed angle to an unsigned angle <=2*PI REAL TrueAngle(REAL opp, REAL adj) Input: REAL opp Length of opposite side Input: REAL adj Length of adjacent side Returns: REAL The angle from 0 to 2PI Returns the true positive angle between 0 and 2PI given the opp and adj lengths
Definition in file angle.c.
[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