Rotates a vector with three angles. The original vector is overwritten.
245 m11 =
COS(theta)*
COS(psi);
249 m21 =
COS(theta)*
SIN(psi);
254 m32 =
SIN(phi) *
COS(theta);
255 m33 =
COS(phi) *
COS(theta);
257 vtmp.x = m11* v->
x + m12*v->
y + m13*v->
z;
258 vtmp.y = m21* v->
x + m22*v->
y + m23*v->
z;
259 vtmp.z = m31* v->
x + m32*v->
y + m33*v->
z;
#define COS(x)
Definition: functions.h:53
vector struct to hold triplets.
Definition: structs.h:29
DOUBLE z
Definition: structs.h:35
double DOUBLE
Definition: types.h:44
DOUBLE x
Definition: structs.h:31
#define SIN(x)
Definition: functions.h:52
DOUBLE y
Definition: structs.h:33