ft: 5,6.1: sphere class + normals

This commit is contained in:
2026-04-15 13:32:29 +02:00
parent 67c1eb861d
commit ebf39d014b
8 changed files with 126 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ pub struct Ray {
}
impl Ray {
pub fn at(self, t: f32) -> Vec3 {
pub fn at(&self, t: f32) -> Vec3 {
self.origin + t * self.dir
}