Thanks for the Tip!  I had no idea there was a single function that would 
return both sine and cosine.

-----Original Message-----
From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> On Behalf Of Jean 
SUZINEAU
Sent: Friday, September 20, 2019 8:01 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] Calculating Pixels to represent 3D coordinates

Tip: if you need Sin(A) and Cos(A), it can be faster to make a single call to 
SinCos instead of two separated calls to Sin and Cos:

https://www.freepascal.org/docs-html/rtl/math/sincos.html

It was efficient 20 years ago when I was developing a sky map software, may be 
the gain is negligible today.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to