/** * \file core/utility.h \brief Various important functionality * for implementing decorators. * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #ifndef IMPCORE_UTILITY_H #define IMPCORE_UTILITY_H #include "core_macros.h" #include "core_config.h" #include "XYZR.h" #include #include #include #include #include IMPCORE_BEGIN_NAMESPACE //! Get the centroid /** Compute the centroid (mean) of a set of particles. */ IMPCOREEXPORT algebra::VectorD<3> get_centroid(const XYZsTemp &ps); IMPCORE_END_NAMESPACE #endif /* IMPCORE_UTILITY_H */