al_fixhypot(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– NAME πŸ’–

Okay so al_fixhypot β€” that’s the Allegro 5 API bestie we’re talking about today. This page is al_fixhypot(3) from the Library Functions Manual, and she’s here to help with a fixed point hypotenuse. πŸ’…

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

al_fixed al_fixhypot(al_fixed x, al_fixed y)

πŸ¦‹ DESCRIPTION πŸ¦‹

Bestie, it’s giving fixed point hypotenuse. πŸ’– Literally: it returns the square root of x*x + y*y.

The manual says this should be better than calculating the formula yourself manually, since the error is much smaller. No cap β€” smaller error, happier math. ✨


source: Allegro reference manual; page: al_fixhypot(3) β€” bye bestie, ily! πŸ«ΆπŸ’«

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms