CSceneCollisionManager.h small fix

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Domin

CSceneCollisionManager.h small fix

Post 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);?
Flo
Posts: 11
Joined: Mon Dec 01, 2003 2:03 pm
Location: Germany

Post 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 ;)
Domin

Post by Domin »

No - sqrtf returns float not double...
Flo
Posts: 11
Joined: Mon Dec 01, 2003 2:03 pm
Location: Germany

Post by Flo »

i know that sqrtf returns a float, but you have to convert it in f32 anyway ;)
Post Reply