Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

allegro

This document pertains to math related methods found in the Allegro egg.

Please see the main [allegro] wiki page for more information.

  1. Outdated egg!
  2. allegro
  3. Functions
    1. Fixed Math

Functions

Fixed Math

[procedure] (fix-to-rad integer)

Implements al_fixtorad_r.

[procedure] (rad-to-fix integer)

Implements al_radtofix_r.

[procedure] (fixed-sqrt integer)

Implements al_fixsqrt.

[procedure] (fixed-hypot integer)

Implements al_fixhypot.

[procedure] (fixed-atan integer)

Implements al_fixatan.

[procedure] (fixed-atan2 integer)

Implements al_fixatan2.

[procedure] (fixed-cos integer)

Wraps _al_fix_cos_tbl.

[procedure] (fixed-tan integer)

Wraps _al_fix_tan_tbl.

[procedure] (fixed-acos integer)

Wraps _al_fix_acos_tbl.