al_rotate_transform(3alleg5)

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

πŸ’« al_rotate_transform β€” Allegro 5 API πŸ’«

okay bestie, welcome to the al_rotate_transform(3alleg5) page, aka the manual for Allegro 5's little spin-the-things-around function. yes we're in section 3, yes it's a library call, yes it's giving math girlie energy and we LOVE that for us πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_rotate_transform(ALLEGRO_TRANSFORM *trans, float theta)

like that's it. that's the whole vibe. two args, one dream πŸ¦‹


🌸 DESCRIPTION 🌸

so what it does is: it applies a rotation to a transformation. that's the whole job. you hand it a transform, you tell it how much to spin, and it spins. slay ✨

Parameters (the receipts):

  • trans β€” the transformation you wanna alter. this is the one getting rotated, bestie, it's the main character here πŸ‘‘
  • theta β€” the rotation angle, measured in radians. radians!! not degrees!! i know, i know, but that's the rule and we respect the rule πŸ’…

πŸ”₯ SEE ALSO πŸ”₯


not me dropping the whole "radians" thing like it's nothing 😭 fr fr, double check your units before you ship, because the math does not care about your feelings 🫢

that's the page, bestie, you ate it πŸ’– this was pulled straight from the Allegro reference manual, and it's literally the al_rotate_transform(3alleg5) entry, so go forth and rotate responsibly 🌈⭐

πŸ“¦ where this page comes from