CosF32

Computes the operamath 32.32 cosine of a 16.16 fraction.

Synopsis

frac32 CosF32( frac32 *c, frac16 x )

Description

This macro returns the operamath 32.32 cosine of a 16.16 fraction. In operamath coordinates, there are 256.0 units in a circle.

The macro actually calls the SinF32() function with one quarter circle added to the input value.

Arguments

c
A pointer to a 32.32 fraction containing the result.
x
A 16.16 fraction describing the angle of the circle.

Return Value

The macro returns the cosine of the input angle.

Implementation

Macro implemented in operamath.h V20.

Associated Files

operamath.h

See Also

SinF16(), CosF16(), SinF32(), CosF30(), SinF30()