View Single Post
Old 2008-01-24, 14:01   #3
kuratkull
 
kuratkull's Avatar
 
Mar 2007
Estonia

23×17 Posts
Default

Umm, if you look at the code in my first post, you see that I'm using doubles.(i removed casts from the code, but they still exist in the arguments for the function).
It's just, that I calculate my vectors so, that the largest vector is always '1', and others are 0<=x<=1, since the cubes sides are all presented by decimal numbers, so a vector in decimal is a logical method(for example, it wouldn't be optimal to use 0.1 as the largest, because then the program would run 10x longer :/)
But still, a mathematical function would be the best solution.

PS! I am willing to change other parts(returns, arguments, etc.) of my code to implement this.

Last fiddled with by kuratkull on 2008-01-24 at 14:08
kuratkull is offline   Reply With Quote