**DONOTDELETE**
(Unregistered)
10/11/04 11:13 AM
Faster sin/cos implementation

Hi there. Once upon a time, while coding a software 3d engine in Java, i found that Math sin() and cos() methods were slooow... So i made a helper class wich contained a pre-calculated buffer from wich i served sin/cos values, using costum sin()/cos() methods. The custom sin() / cos() methods simply looked up into the pre-calculated buffer. And that approach was *fast*, believe me. No jni, no c++, just pure java


Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.