#include <stdio.h>
#include "ccp4_unitcell.h"
#include "cvecmat.h"
#include "ccp4_errno.h"
Functions | |
double | ccp4uc_frac_orth_mat (const double cell[6], const int ncode, double ro[3][3], double rf[3][3]) |
double | ccp4uc_calc_rcell (const double cell[6], double rcell[6]) |
void | ccp4uc_orth_to_frac (const double rf[3][3], const double xo[3], double xf[3]) |
void | ccp4uc_frac_to_orth (const double ro[3][3], const double xf[3], double xo[3]) |
void | ccp4uc_orthu_to_fracu (const double rf[3][3], const double uo[6], double uf[6]) |
void | ccp4uc_fracu_to_orthu (const double ro[3][3], const double uf[6], double uo[6]) |
double | ccp4uc_calc_cell_volume (const double cell[6]) |
int | ccp4uc_cells_differ (const double cell1[6], const double cell2[6], const double tolerance) |
int | ccp4uc_is_rhombohedral (const float cell[6], const float tolerance) |
int | ccp4uc_is_hexagonal (const float cell[6], const float tolerance) |
|
Calculate cell volume from cell parameters.
|
|
From input cell, find dimensions of reciprocal cell.
|
|
Check cells agree within tolerance.
|
|
From input cell and orthogonalisation code, find orthogonalisation and fractionalisation matrices.
|
|
Convert fractional to orthogonal coordinates.
|
|
Convert fractional to orthogonal u matrix.
|
|
Check if cell parameters conform to a hexagonal setting.
|
|
Check if cell parameters conform to a rhombohedral setting.
|
|
Convert orthogonal to fractional coordinates. Translation only if deliberate origin shift - does this ever happen? Leave it to the application.
|
|
Convert orthogonal to fractional u matrix.
|