refactor: rename types.rs to util.rs

This commit is contained in:
Kiana Sheibani 2024-10-14 18:11:19 -04:00
parent 763a4ff923
commit f33ee09b9d
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
10 changed files with 32 additions and 27 deletions

View file

@ -3,11 +3,8 @@ extern crate nalgebra as na;
use std::cmp::Ordering;
use std::f64::consts::PI;
use na::geometry::Point3;
use na::*;
use crate::object::*;
use crate::types::*;
use crate::util::*;
fn trace(ray: Ray, objects: &Vec<Object>) -> Option<(&Object, f64)> {
objects