From a7cf3c4d1c27b2432e4ad56fb79408e23e860587 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 14 Aug 2023 13:28:48 +0200 Subject: [PATCH] renaming also applied to drawing.cpp --- drawing.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index 37a69bda..0992c79a 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -925,16 +925,17 @@ ld period_at(ld y) { } } -void apply_ori_gl(glvertex& g) { - auto Ori = pconf.mori().v2; +void ori_to_scr(glvertex& g) { + auto& Ori = pconf.mori().v2; tie(g[0], g[1]) = make_pair( Ori[0][0] * g[0] + Ori[0][1] * g[1], Ori[1][0] * g[0] + Ori[1][1] * g[1] ); } -void apply_iori_gl(glvertex& g) { - auto Ori = pconf.mori().v2; +void scr_to_ori(glvertex& g) { + auto& Ori = pconf.mori().v2; + /* we invert it, so transposition is applied in the formula */ tie(g[0], g[1]) = make_pair( Ori[0][0] * g[0] + Ori[1][0] * g[1], Ori[0][1] * g[0] + Ori[1][1] * g[1] @@ -947,7 +948,7 @@ void adjust(bool tinf) { if(!models::model_straight) for(auto& g: glcoords) - apply_ori_gl(g); + scr_to_ori(g); for(int i = 0; i