1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-11 05:39:04 +00:00

more detailed Euclidean embedding parameters

This commit is contained in:
Zeno Rogue
2023-01-05 14:01:23 +01:00
parent 731fcee7ce
commit 2182f442d9
5 changed files with 66 additions and 30 deletions

View File

@@ -5099,13 +5099,13 @@ EX void make_actual_view() {
transmatrix T = actual_view_transform * View;
ld z = -tC0(view_inverse(T)) [2];
transmatrix R = actual_view_transform;
R = (logical_to_actual()) * R;
R = cgi.logical_to_actual * R;
if(R[1][2] || R[2][2])
R = cspin(1, 2, -atan2(R[1][2], R[2][2])) * R;
if(R[0][2] || R[2][2])
R = cspin(0, 2, -atan2(R[0][2], R[2][2])) * R;
if(geom3::hyp_in_solnih()) R = Id;
R = inverse(logical_to_actual()) * R;
R = cgi.actual_to_logical * R;
current_display->radar_transform = inverse(R) * zpush(-z);
}
else if(gproduct) {