al_invert_transform(3)
β¨ NAME β¨
okay bestie, meet <al_invert_transform> β it's the Allegro 5 API function from the Library Functions Manual, and its whole personality is flipping a transformation inside out. π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_invert_transform(ALLEGRO_TRANSFORM *trans)
π¦ DESCRIPTION π¦
Inverts the passed transformation. That's the main-character move. π
If the transformation is nearly singular (close to not having an inverse), then the returned transformation may be invalid. Not a slay. If you're in doubt, use al_check_inverse(3) to ascertain if the transformation has an inverse before inverting it β future you will thank you. π«Ά
Parameters
transβ Transformation to invert.
β οΈ Note: Allegroβs transformation inversion functions work correctly only with 2D transformations. That's the vibe check: 2D only, no cap. π
π₯ SEE ALSO π₯
al_check_inverse(3)β the "does this even have an inverse?" bestie you call first.
okay that's the whole page. The footer energy is Allegro reference manual, and there's literally no date printed on it, so no fake timestamp from me β source/version is just that manual line, date: not listed. π
π¦ 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