1use crate::Vector3; 2 3pub struct Ray { 4 pub(crate) origin: Vector3, 5 pub(crate) direction: Vector3, 6} 7 8impl Ray { 9 pub fn new(origin: Vector3, direction: Vector3) -> Self { 10 Self { origin, direction } 11 } 12}