Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
angle.h File Reference

Include file for angle functions. More...

#include "MathType.h"
#include "SysDefs.h"
#include "deprecated.h"

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)
 

Detailed Description

Include file for angle functions.

Version
V1.10
Date
14.08.14
Author
Dr. Andrew C. R. Martin
Institute of Structural & Molecular Biology, University College London, Gower Street, London. WC1E 6BT.
andre.nosp@m.w@bi.nosp@m.oinf..nosp@m.org..nosp@m.uk andre.nosp@m.w.ma.nosp@m.rtin@.nosp@m.ucl..nosp@m.ac.uk

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.

Description:

Usage:

Revision History:

Definition in file angle.h.

Macro Definition Documentation

#define _ANGLE_H_DEPRECATED

Definition at line 95 of file angle.h.

Function Documentation

REAL blAngle ( REAL  xi,
REAL  yi,
REAL  zi,
REAL  xj,
REAL  yj,
REAL  zj,
REAL  xk,
REAL  yk,
REAL  zk 
)
Parameters
[in]xiInput coordinate
[in]yiInput coordinate
[in]ziInput coordinate
[in]xjInput coordinate
[in]yjInput coordinate
[in]zjInput coordinate
[in]xkInput coordinate
[in]ykInput coordinate
[in]zkInput coordinate
Returns
The angle between the 3 atoms

Calculates the angle between three sets of coordinates

  • 07.02.89 Original By: ACRM
  • 04.03.91 Fixed return value
  • 16.06.93 Changed float to REAL
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 150 of file angle.c.

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 
)
Parameters
[in]xiInput coordinate
[in]yiInput coordinate
[in]ziInput coordinate
[in]xjInput coordinate
[in]yjInput coordinate
[in]zjInput coordinate
[in]xkInput coordinate
[in]ykInput coordinate
[in]zkInput coordinate
[in]xlInput coordinate
[in]ylInput coordinate
[in]zlInput coordinate
Returns
The torsion angle between the 4 atoms

Calculates the torsion angle described by 4 sets of coordinates.

  • 04.03.91 Original By: ACRM
  • 16.06.93 Changed float to REAL
  • 07.07.14 Use bl prefix for functions By: CTP
  • 17.07.14 Removed unused variables By: ACRM

Definition at line 107 of file phi.c.

REAL blSimpleangle ( REAL  ang)
Parameters
[in]angAn angle
Returns
Simplified angle

Simplifies a signed angle to an unsigned angle <=2*PI

  • 07.02.89 Original By: ACRM
  • 04.03.91 Fixed return value
  • 16.06.93 Changed float to REAL
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 95 of file simpleangle.c.

BOOL blTorToCoor ( VEC3F  ant1,
VEC3F  ant2,
VEC3F  ant3,
REAL  bond,
REAL  theta,
REAL  torsion,
VEC3F coords 
)
Parameters
[in]ant1First antecedent atom coordinates
[in]ant2Second antecedent atom coordinates
[in]ant3Third antecedent atom coordinates
[in]bondBond length from ant3 to new atom
[in]thetaBond angle ant2-ant3-new
[in]torsionTorsion angle ant1-ant2-ant3-new
[out]*coordsCoordinates of new atom
Returns
TRUE if distance between atoms 2 and 3 is < ETA (1.07e-7)

Calculates cartesian coordinates for an atom given the coordinates of three antecedant atoms and the bond length, angle and torsion angle

  • 08.07.96 Original By: ACRM based on earlier FORTRAN code
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 104 of file TorCoor.c.

REAL blTrueAngle ( REAL  opp,
REAL  adj 
)
Parameters
[in]oppOpposite length
[in]adjAdjacent length
Returns
Angle between 0 and 2PI

Return the +ve angle between 0 and 2PI given the opp and adj values.

  • 25.07.94 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 107 of file TrueAngle.c.