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:
parent
45c1a3296a
commit
a1979125c6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user