3 #include "../geometry\gmatrix.h" 26 this->direction = this->position - this->
target;
37 this->up = this->up * rotation;
38 this->direction = this->direction * rotation;
46 this->right = this->right * rotation;
47 this->direction = this->direction * rotation;
55 if (this->direction == this->right || this->direction == this->right * (-1))
72 for (
int i = 0; i < 4; i++)
74 view[i][0] = this->right[i];
75 view[i][1] = this->up[i];
76 view[i][2] = this->direction[i];
GMatrix matrixrotation(double X, double Y, double Z, double angle)
GMatrix matrixmovement(double X, double Y, double Z)
void rotateHorizontalSphere(double angle)
static GVector cross(GVector first, GVector second)
void rotateVerticalSphere(double angle)
static double scalar(GVector first, GVector second)