|
|
|||||||
|
I have noticed that remplacing these calls : Math.cos(theta) and Math.sin(theta) ... by this kind of calls : -Math.cos(theta % Math.PI - Math.PI) and -Math.sin(theta % Math.PI - Math.PI) ... the program runs about 7 times faster on my machine (i don't know why...) ! It is better than using JNI, and more accurate than using lookup tables since it works for any value. |