al_rotate_transform_3d(3)

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

okay bestie, we're in al_rotate_transform_3d(3) territory, and this page is straight from the Allegro reference manual β€” Allegro 5 API, 3D rotation core. πŸ’…

πŸŽ€ NAME

al_rotate_transform_3d β€” Allegro 5 API

That's the whole name, no cap. πŸ‘‘

✨ SYNOPSIS

              #include <allegro5/allegro.h>

              void al_rotate_transform_3d(ALLEGRO_TRANSFORM *trans,
                 float x, float y, float z, float angle)

πŸ’« DESCRIPTION

okay so what it does: it combines the transformation you hand it with a transformation that rotates coordinates around the given vector, by the given angle in radians. ✨

heads up, bestie: the vector is assumed to be of unit length β€” if it isn't, it will also incur a scale. Not a drill, that's the note. 🫢

πŸ•°οΈ SINCE

5.1.3 β€” yep, this one has been around since then. πŸ‘‘


source/version: Allegro reference manual (Allegro 5 API); date: not listed on this page, so I'm literally not making one up. al_rotate_transform_3d(3) signing off β€” slay your 3D rotations πŸ’–βœ¨

πŸ“¦ 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