Started using lin alg library
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -1,6 +1,11 @@
|
||||
pub mod vec4;
|
||||
#![allow(dead_code)]
|
||||
mod ray;
|
||||
use nalgebra::{Matrix4, Vector4};
|
||||
|
||||
use ray::Ray;
|
||||
|
||||
fn main() {
|
||||
println!("Hello world");
|
||||
let x = Vector4::new(1.0, 1.0, 1.0, 1.0);
|
||||
let mat_a = Matrix4::from_diagonal_element(0.12);
|
||||
println!("mat_a*x = {}", { mat_a * x });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user