get rid std:: math funcs

This commit is contained in:
Pawel Kolodziejski 2009-05-10 14:15:07 +00:00
parent ed61e8181c
commit f2c3a3c514
6 changed files with 16 additions and 17 deletions

View file

@ -1255,10 +1255,10 @@ static void RotateVector() {
if (rotateObject == 0)
rotateObject = getIndexedTableValue(param2, 2);
rotate = lua_getnumber(rotateObject);
Vector3d baseVector(std::sin(0.0f), std::cos(0.0f), 0);
Vector3d baseVector(sin(0.0f), cos(0.0f), 0);
currAngle = angle(baseVector, vec1) * (180 / LOCAL_PI);
newAngle = (currAngle - rotate) * (LOCAL_PI / 180);
Vector3d vec2(std::sin(newAngle), std::cos(newAngle), 0);
Vector3d vec2(sin(newAngle), cos(newAngle), 0);
vec2 *= vec1.magnitude();
result = lua_createtable();