Compare commits
2 Commits
7afb7b2f20
...
906aecf30d
| Author | SHA1 | Date | |
|---|---|---|---|
| 906aecf30d | |||
| 344a604877 |
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user