29 .position = {0, 0, 20}, .rotation = {0}, .scale = {1, 1, 1}};
45 temp = res->
y *
cos(rot->
x) - res->
z *
sin(rot->
x);
46 res->
z = res->
y *
sin(rot->
x) + res->
z *
cos(rot->
x);
50 temp = res->
x *
cos(rot->
y) + res->
z *
sin(rot->
y);
51 res->
z = -res->
x *
sin(rot->
y) + res->
z *
cos(rot->
y);
55 temp = res->
x *
cos(rot->
z) - res->
y *
sin(rot->
z);
56 res->
y = res->
x *
sin(rot->
z) + res->
y *
cos(rot->
z);
void gm3_pos_mul(gm3Pos *res, const gm3Pos *trans)
Multiplies the components of a gm3Pos vector by the corresponding components of another gm3Pos vector...
Definition position.h:180
#define gm3_pos_reset(p)
Resets the coordinates of a gm3Pos struct to (0, 0, 0).
Definition position.h:154
double cos(double x)
Calculates the cosine of an angle (in radians).
Definition math.h:105
double sin(double x)
Calculates the sine of an angle (in radians).
Definition math.h:128
Represents a 3D position or vector.
Definition position.h:11
double y
Definition position.h:12
double z
Definition position.h:12
double x
Definition position.h:12