Created
July 27, 2021 14:37
-
-
Save PedroRacchetti/75db1978513a922c5b1bc951802718ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pt rotate(double ang /* angulo, em radianos*/){ | |
double xb = x * cos(ang) - y * sin(ang); | |
double yb = x * sin(ang) + y * cos(ang); | |
return Pt(xb,yb); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment