mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 11:12:49 +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;
|
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) {
|
EX transmatrix euscale(ld x, ld y) {
|
||||||
transmatrix T = Id;
|
transmatrix T = Id;
|
||||||
T[0][0] = x;
|
T[0][0] = x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user