Added sphere, circle, cone
This commit is contained in:
@@ -11,7 +11,7 @@ impl Ray {
|
||||
pub fn new(_a: Point3<f32>, _b: Vector3<f32>) -> Ray {
|
||||
Ray { a: _a, b: _b }
|
||||
}
|
||||
pub fn at_t(self, t: f32) -> Point3<f32> {
|
||||
pub fn at_t(&self, t: f32) -> Point3<f32> {
|
||||
self.a + self.b * t
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user