Advertisement

Random point in circle...

Started by December 26, 2001 05:20 PM
40 comments, last by VanKurt 23 years, 1 month ago
Hey. Quick question. FSINCOS. Could you explain that a bit? I''ve been looking for a faster sin/cos function. I take it that is what FSINCOS is? I''m used to being able to specify which math lib I wanted (basically fast or accurate) but MSVC doesn''t seem to have this feature.
The FSINCOS instruction calculates the sine and cosine of an angle at the same time, and it''s twice as fast as calculating the sine and cosine separately.

My test was under borland c++, which declares a SinCos function under math.hpp (it''s implemented in a .lib). I don''t know the actual implementation. But normally, I''d just place a limitation on the angles I could use, and use a lookup table.

This topic is closed to new replies.

Advertisement