Compare commits

..

2 Commits

Author SHA1 Message Date
906aecf30d remove the KDE dependency 2026-10-25 12:45:09 +03:00
344a604877 switch to right-handed CS 2026-10-25 12:45:09 +03:00

View File

@ -50,10 +50,10 @@ mod tests {
fn test_view() { fn test_view() {
let mut ok = true; let mut ok = true;
for (yaw, pitch, x1, y1, z1) in [ for (yaw, pitch, x1, y1, z1) in [
(0.0, 0.0, [0., 0., 2.], [-1., 0., 3.], [0., 1., 3.]), (0.0, 0.0, [0., 0., -4.], [-1., 0., -3.], [0., 1., -3.]),
(0.5, 0.0, [1., 0., 3.], [0., 0., 2.], [0., 1., 3.]), (0.5, 0.0, [-1., 0., -3.], [0., 0., -2.], [0., 1., -3.]),
(0.0, 0.5, [0., -1., 3.], [-1., 0., 3.], [0., 0., 2.]), (0.0, 0.5, [0., 1., -3.], [-1., 0., -3.], [0., 0., -2.]),
(0.5, 0.5, [1., 0., 3.], [0., -1., 3.], [0., 0., 2.]), (0.5, 0.5, [-1., 0., -3.], [0., -1., -3.], [0., 0., -2.]),
] { ] {
let m = view(yaw * PI, pitch * PI, 3.); let m = view(yaw * PI, pitch * PI, 3.);
for (label, world, expected) in for (label, world, expected) in