Closed tyoc213 closed 8 years ago
Look at this:
expected `&nalgebra::structs::vec::Vec3<f64>`,
found `&collections::vec::Vec<_>`
You have a mistake this string:
trot.look_at(&Vec::new(1.2, 1.2, 1.2), &Vec3::new(0.0,0.0,1.0));
Use Vec3::new
instead of Vec::new
.
That was the code like I have it in that moment but thanks (will love more examples of nalgebra thought), anyway I reported it because if you see the log
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
...
thread 'rustc' panicked at 'index out of bounds: the len is 146 but the index is 147', ../src/libcollections/vec.rs:1362
So I wrote this report as I did have the code in that moment and put all the "extra info".
Without the versions of all these extra dependencies, it's not clear we can reproduce this :(
As such, I'm going to give it a close. @tyoc213 if you have a way, please let me know!
I tried this code (my little follow up learning rust and ogl)
It breaks the compiler. I get this