1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-07 03:07:01 +00:00

added function euscalexx to scale X and Y dims by the same value

This commit is contained in:
Zeno Rogue 2025-03-02 22:02:27 +01:00
parent 45c1a3296a
commit a1979125c6

View File

@ -704,6 +704,13 @@ EX transmatrix euclidean_translate(ld x, ld y, ld z) {
return T;
}
EX transmatrix euscalexx(ld x) {
transmatrix T = Id;
T[0][0] = x;
T[1][1] = x;
return T;
}
EX transmatrix euscale(ld x, ld y) {
transmatrix T = Id;
T[0][0] = x;