105 REAL lena, lenb, lenc,
106 cosa, cosb, cosg, sing,
107 tmpx, tmpy, tmpz, temp;
111 lenc = -1.0*UnitCell.
z;
113 cosa = (
REAL)cos((
double)(CellAngles.
x));
114 cosb = (
REAL)cos((
double)(CellAngles.
y));
115 cosg = (
REAL)cos((
double)(CellAngles.
z));
116 sing = (
REAL)sin((
double)(CellAngles.
z));
118 temp = cosa*cosa + cosb*cosb + cosg*cosg - 2.0*cosa*cosb*cosg;
120 tmpy = (cosa - cosb*cosg)/sing;
121 tmpz = (
REAL)sqrt((
double)(1.0-temp))/sing;
124 xtrans->
y = (
REAL)0.0;
125 xtrans->
z = (
REAL)0.0;
127 ytrans->
x = lenb*cosg;
128 ytrans->
y = lenb*sing;
129 ytrans->
z = (
REAL)0.0;
131 ztrans->
x = lenc*tmpx;
132 ztrans->
y = lenc*tmpy;
133 ztrans->
z = lenc*tmpz;
Include file for PDB routines.
void blCalcCellTrans(VEC3F UnitCell, VEC3F CellAngles, VEC3F *xtrans, VEC3F *ytrans, VEC3F *ztrans)
Include file for fsscanf()
System-type variable type definitions.
Type definitions for maths.