[ODE] ODE Tutorial
Morten Hoide
shibbiyaya at yahoo.de
Thu Aug 16 12:02:15 MST 2007
In the ODE tutorial : http://artis.imag.fr/Membres/Xavier.Decoret/resources/ode/tutorial1.html theres this piece of code:
for (int i=0;i<3;++i)
{
aabb[i] = min(aabb[i],aabb[i]);
aabb[3+i]=max(aabb[3+i],aabb[3+i]);
}
I really dont get the purpose of that ! What is it good for ? Isn't min(x,y) returning the smaller value of x and y ?
Because in the tutorial it is used with 2 times the same value, what is quite confusing..... ?
Thx, Marten
ODE Tutorial :http://artis.imag.fr/Membres/Xavier.Decoret/resources/ode/tutorial1.html in tutorial C in the viewer.cpp file theres this piece of code:
---------------------------------
Wissenswertes für Bastler und Hobby Handwerker.BE A BETTER HEIMWERKER!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ode.org/pipermail/ode/attachments/20070816/9e6e9183/attachment.htm
More information about the ODE
mailing list