/* ligand/rigid-body.hh * * Copyright 2005 by Paul Emsley, The University of York * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ #ifndef COOT_RIGID_BODY_HH #define COOT_RIGID_BODY_HH #include "clipper/core/xmap.h" #include "mini-mol/mini-mol.hh" // move the atoms of mol namespace coot { void rigid_body_fit(minimol::molecule *mol, const clipper::Xmap &xmap, float map_rmsd); clipper::Vec3 get_rigid_body_angle_components(const std::vector &atoms_p, const clipper::Coord_orth &mean_pos, const std::vector > &grad_vec, double gradient_scale); void apply_angles_to_molecule(const clipper::Vec3 &angles, const std::vector *atoms_p, const clipper::Coord_orth &mean_pos); float score_molecule(const coot::minimol::molecule &m, const clipper::Xmap &xmap); std::pair get_rigid_body_fit_rtop(minimol::molecule *mol, const clipper::Xmap &xmap, float map_rmsd); // as above but make a local RTop, that is, remove local_centre // from coordinates before calculating the RTop. std::pair get_rigid_body_fit_rtop(minimol::molecule *mol, const clipper::Coord_orth &local_centre, const clipper::Xmap &xmap, float map_rmsd); } #endif // COOT_RIGID_BODY_HH