Started using lin alg library

This commit is contained in:
STP
2023-11-11 00:27:26 -05:00
parent bd458d4922
commit fefa7830d1
5 changed files with 1265 additions and 267 deletions

View File

@@ -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 });
}