al_transpose_transform(3)
al_transpose_transform(3) β¨
okay so this page is from the Library Functions Manual β itβs the Allegro 5 API manual, and weβre talking about al_transpose_transform(3), bestie. π«Ά
π NAME π
al_transpose_transform - Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_transpose_transform(ALLEGRO_TRANSFORM *trans)
π¦ DESCRIPTION π¦
This function transposes the matrix of the transform you pass in as trans. π
You can use it for inversing a rotation transform β no cap, thatβs the whole use case. For example: π
al_build_camera_transform(camera, 0, 0, 0, x, y, z, xu, yu, zu)
al_copy_transform(inverse, camera)
al_transpose_transform(camera)
// Now "inverse" will be a transformation rotating in the opposite
// direction from "camera". Note that this only works if the camera
// position is 0/0/0 as in the example.
And yes, the caveat is right there in the comment: this only works if the camera position is 0/0/0 as in the example. Donβt skip it, bestie. π
π SINCE π
5.2.5 β sheβs been here since then, periodt. β
cute footer sign-off: source/version: Allegro reference manual β date: not printed on this page, so no date to spill; the footer just gives the manual and al_transpose_transform(3). π
π¦ 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