Gemmi C++ API
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
math.hpp File Reference
#include <cmath>
#include <algorithm>
#include <array>
#include <stdexcept>
#include <type_traits>

Go to the source code of this file.

Classes

struct  gemmi::Mat33
 
struct  gemmi::UpperTriangularMat33
 
struct  gemmi::SMat33< T >
 
struct  gemmi::Transform
 
struct  gemmi::Box< Pos >
 

Namespaces

namespace  gemmi
 

Typedefs

using gemmi::Vec3 = Vec3_< double >
 
using gemmi::Vec3f = Vec3_< float >
 

Functions

constexpr double gemmi::pi ()
 
constexpr double gemmi::hc ()
 
constexpr double gemmi::bohrradius ()
 
constexpr double gemmi::mott_bethe_const ()
 
constexpr double gemmi::u_to_b ()
 
constexpr double gemmi::deg (double angle)
 
constexpr double gemmi::rad (double angle)
 
constexpr float gemmi::sq (float x)
 
constexpr double gemmi::sq (double x)
 
int gemmi::iround (double d)
 
double gemmi::angle_abs_diff (double a, double b, double full=360.0)
 
Vec3 gemmi::operator* (double d, const Vec3 &v)
 
Vec3 gemmi::rotate_about_axis (const Vec3 &v, const Vec3 &axis, double theta)
 Rodrigues' rotation formula: rotate vector v about given axis of rotation (which must be a unit vector) by given angle (in radians).