mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-25 12:12:48 +00:00
gridline now automatically improves the precision when edges are long
This commit is contained in:
parent
998abd2f77
commit
3e33aadba4
@ -3589,6 +3589,8 @@ bool celldrawer::cell_clipped() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX void gridline(const transmatrix& V1, const hyperpoint h1, const transmatrix& V2, const hyperpoint h2, color_t col, int prec) {
|
EX void gridline(const transmatrix& V1, const hyperpoint h1, const transmatrix& V2, const hyperpoint h2, color_t col, int prec) {
|
||||||
|
ld d = hdist(h1, h2);
|
||||||
|
while(d > .5 && d < 100) d /= 2, prec++;
|
||||||
#if MAXMDIM >= 4
|
#if MAXMDIM >= 4
|
||||||
if(WDIM == 2 && GDIM == 3) {
|
if(WDIM == 2 && GDIM == 3) {
|
||||||
ld eps = cgi.human_height/100;
|
ld eps = cgi.human_height/100;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user