Extracts a matrix from an abbreviated matrix
| 3045 | |
| 3046 | // Extracts a matrix from an abbreviated matrix |
| 3047 | void MultiExtractMatrix(matrix *dest, multi_orientation *src) { |
| 3048 | dest->rvec.x = (float)src->multi_matrix[0] / 32767.0; |
| 3049 | dest->rvec.y = (float)src->multi_matrix[1] / 32767.0; |
| 3050 | dest->rvec.z = (float)src->multi_matrix[2] / 32767.0; |
| 3051 | |
| 3052 | dest->uvec.x = (float)src->multi_matrix[3] / 32767.0; |
| 3053 | dest->uvec.y = (float)src->multi_matrix[4] / 32767.0; |
| 3054 | dest->uvec.z = (float)src->multi_matrix[5] / 32767.0; |
| 3055 | |
| 3056 | dest->fvec.x = (float)src->multi_matrix[6] / 32767.0; |
| 3057 | dest->fvec.y = (float)src->multi_matrix[7] / 32767.0; |
| 3058 | dest->fvec.z = (float)src->multi_matrix[8] / 32767.0; |
| 3059 | } |
| 3060 | |
| 3061 | void MultiDoPlayerPos(uint8_t *data) { |
| 3062 | int use_smoothing = (Netgame.flags & NF_USE_SMOOTHING); |
no outgoing calls
no test coverage detected