On Mon, 23 Oct 2006, Mathieu Bouchard wrote:
but then to preserve energy, you should use some square root there. another idea is to use sin and cos, which already add up to 1 when squared:
a = cos(x) * cos(y) b = sin(x) * cos(y) c = cos(x) * sin(y) d = sin(x) * sin(y)
replace every x by x*pi/2 and every y by y*pi/2, but then I'm really not convinced that this is any better than the previous simpler formulas provided that square root has been used on them.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada