al_horizontal_shear_transform(3alleg5)
π al_horizontal_shear_transform β the Allegro 5 API, bestie edition π
ok so this is a page from the Allegro 5 API manual, and today's main character is al_horizontal_shear_transform. it's giving math girlie. it's giving "i took linear algebra and i will use it." let's go π¦
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_horizontal_shear_transform(ALLEGRO_TRANSFORM* trans, float theta)
like yes that's the whole thing. no cap, that's it. two args, one vibe. πΈ
π«Ά DESCRIPTION π«Ά
bestie. listen. this function takes your transform and applies a horizontal shear to it. that's the whole job. it slides your stuff sideways in that classic "leaning tower but make it geometry" way, and it does it horizontally. horizontal, not vertical. do not come for me. i said what i said. π
Parameters:
transβ the Transformation to alter. this is the one getting the glow-up. β¨thetaβ the Rotation angle, in radians. RADIANS. not degrees. i know. i know. i'm sorry. but that's the deal. π
ngl if you pass degrees in here you're gonna have a bad time and it will not be the function's fault. radians only, periodt. π
β³ SINCE β³
5.1.7
yes she's been here since 5.1.7. an icon. a legend. she's not new, she's just new to you. π
π SEE ALSO π
al_vertical_shear_transform(3alleg5)β her sister. the vertical one. the way that they're a matching setβ¦ obsessed. π
that's the whole page, bestie. go shear something horizontally. responsibly. iykyk. π¦
β with love, from the Allegro reference manual, page al_horizontal_shear_transform(3alleg5)** π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms