Mercurial > mm7
comparison mm7_5.cpp @ 1029:c94d6a37d298
Pointing a face with mouse fixed.
author | Nomad |
---|---|
date | Tue, 21 May 2013 12:10:08 +0200 |
parents | 6afa77761a00 |
children | f93d17337113 d3f4c6584ada |
comparison
equal
deleted
inserted
replaced
1028:fbde7d8fcdb1 | 1029:c94d6a37d298 |
---|---|
5369 | 5369 |
5370 float cosf_x = cosf(3.14159265f * sRotX / 1024.0f), | 5370 float cosf_x = cosf(3.14159265f * sRotX / 1024.0f), |
5371 sinf_x = sinf(3.14159265f * sRotX / 1024.0f), | 5371 sinf_x = sinf(3.14159265f * sRotX / 1024.0f), |
5372 cosf_y = cosf(3.14159265f * sRotY / 1024.0f), | 5372 cosf_y = cosf(3.14159265f * sRotY / 1024.0f), |
5373 sinf_y = sinf(3.14159265f * sRotY / 1024.0f); | 5373 sinf_y = sinf(3.14159265f * sRotY / 1024.0f); |
5374 sDepth = 14000000; | 5374 //sDepth = 14000000; |
5375 *outx = v.x + ((unsigned __int64)(sinf_y * (signed __int64)((unsigned __int64)(cosf_x * (signed __int64)sDepth)>> 16))); | 5375 *outx = v.x + ((unsigned __int64)(sinf_y * (signed __int64)((unsigned __int64)(cosf_x * (signed __int64)sDepth)>> 16))); |
5376 *outy = v.y + ((unsigned __int64)(cosf_y * (signed __int64)((unsigned __int64)(cosf_x * (signed __int64)sDepth)>> 16))); | 5376 *outy = v.y + ((unsigned __int64)(cosf_y * (signed __int64)((unsigned __int64)(cosf_x * (signed __int64)sDepth)>> 16))); |
5377 *outz = v.z + ((unsigned __int64)(sinf_x * (signed __int64)sDepth) >> 16); | 5377 *outz = v.z + ((unsigned __int64)(sinf_x * (signed __int64)sDepth) >> 16); |
5378 | 5378 |
5379 } | 5379 } |