Page 1 of 1

CSceneCollisionManager.h small fix

Posted: Mon Jan 26, 2004 2:42 pm
by Domin
CSceneCollisionManager.h line 123 in 0.4.2 source

f32 sqrtD = (f32)sqrt(determinant); ---> isn't faster to call f32 sqrtD = sqrtf(determinant);?

Posted: Mon Jan 26, 2004 3:03 pm
by Flo
yeah, but the result of this square root still have to be converted into a f32 ;)
--> f32 sqrtD = (f32)sqrtf(determinant);

but the effect won't be very high ;)

Posted: Mon Jan 26, 2004 5:12 pm
by Domin
No - sqrtf returns float not double...

Posted: Mon Jan 26, 2004 6:12 pm
by Flo
i know that sqrtf returns a float, but you have to convert it in f32 anyway ;)