![]() |
FracCos |
||||
Header: | FixMath.h | Carbon status: | Supported | |
Obtains a fast approximation of the cosine of a Fixed number.
Fract FracCos ( Fixed x );
The Fixed number expressed in radians, whose cosine is to be calculated.
The cosine, expressed in radians, of the Fixed number x.
The approximation of Pi/4 used to compute the cosine is the hexadecimal value 0.C910, making the approximation of Pi equal to 3.1416015625, while Pi itself equals 3.14159265.... Despite the approximation of Pi, the cosine value obtained is usually correct to several decimal places.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)