(type egg)
(signature "math egg")
(timestamp 1612269484)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/allegro" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "allegro" "game")) (section 2 "allegro" (p "This document pertains to math related methods found in the Allegro egg.") (p "Please see the main [allegro] wiki page for more information.") (toc)) (section 2 "Functions" (section 3 "Fixed Math" (def (sig (procedure "(fix-to-rad integer)" (id fix-to-rad))) (p "Implements al_fixtorad_r.")) (def (sig (procedure "(rad-to-fix integer)" (id rad-to-fix))) (p "Implements al_radtofix_r.")) (def (sig (procedure "(fixed-sqrt integer)" (id fixed-sqrt))) (p "Implements al_fixsqrt.")) (def (sig (procedure "(fixed-hypot integer)" (id fixed-hypot))) (p "Implements al_fixhypot.")) (def (sig (procedure "(fixed-atan integer)" (id fixed-atan))) (p "Implements al_fixatan.")) (def (sig (procedure "(fixed-atan2 integer)" (id fixed-atan2))) (p "Implements al_fixatan2.")) (def (sig (procedure "(fixed-cos integer)" (id fixed-cos))) (p "Wraps _al_fix_cos_tbl.")) (def (sig (procedure "(fixed-tan integer)" (id fixed-tan))) (p "Wraps _al_fix_tan_tbl.")) (def (sig (procedure "(fixed-acos integer)" (id fixed-acos))) (p "Wraps _al_fix_acos_tbl."))))))
