al_horizontal_shear_transform(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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 🌈


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