- MAT3_COPY_VEC(nup, v->local_up);
- nsun[0] = t->fg_sunpos.x;
- nsun[1] = t->fg_sunpos.y;
- nsun[2] = t->fg_sunpos.z;
- MAT3_NORMALIZE_VEC(nup, temp);
- MAT3_NORMALIZE_VEC(nsun, temp);
-
- sun_angle = acos(MAT3_DOT_PRODUCT(nup, nsun));
- printf("SUN ANGLE relative to current location = %.3f rads.\n", sun_angle);
-