From 0d52b22cad049a9e5564b80a342100dc75fd5018 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 2 Mar 2025 22:14:42 +0100 Subject: [PATCH] added some comments to atscreenpos --- hypgraph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypgraph.cpp b/hypgraph.cpp index 338f99c5..cffb3d13 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -2563,6 +2563,7 @@ struct flat_model_enabler { }; #endif +/** atscreenpos(x,y) * eupoint(x1,y1) renders at pixel coordinates (x+x1, y+y1) */ EX shiftmatrix atscreenpos(ld x, ld y) { transmatrix V = Id; @@ -2591,6 +2592,7 @@ EX shiftmatrix atscreenpos(ld x, ld y) { return shiftless(V); } +/** here, size is relative to the 'standard size' */ EX shiftmatrix atscreenpos(ld x, ld y, ld size) { shiftmatrix V = atscreenpos(x, y); ld s = size * 2 * cgi.hcrossf / cgi.crossf;