-
Notifications
You must be signed in to change notification settings - Fork 0
/
caams.hpp
31 lines (26 loc) · 883 Bytes
/
caams.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CAAMS_H
#define CAAMS_H
#include "matrix.hpp"
namespace caams
{
matrix G(matrix const & p);
matrix L(matrix const & p);
matrix SS(matrix const & a);
matrix pAA(double angle, matrix const & axis);
matrix Ap(matrix const & p);
matrix a_plus(matrix const & a);
matrix a_minus(matrix const & a);
double norm(matrix const & a);
matrix x_axis(matrix const & a);
matrix y_axis(matrix const & a);
matrix z_axis(matrix const & a);
matrix normalize(matrix const & a);
long maxComponent(matrix const & a);
// some inertial tensor functions
matrix J_p_cylinder_x_axis(double m, double r, double l);
matrix J_p_cylinder_y_axis(double m, double r, double h);
matrix J_p_cylinder_z_axis(double m, double r, double h);
matrix J_p_sphere(double mass, double radius);
matrix J_p_cuboid(double mass, double dx, double dy, double dz);
}
#endif