rays: derive Debug on Ray.
This commit is contained in:
parent
c0e422a7eb
commit
2f85697b88
@ -1,6 +1,7 @@
|
|||||||
use crate::{matrices::Matrix4x4, tuples::Tuple, Float};
|
use crate::{matrices::Matrix4x4, tuples::Tuple, Float};
|
||||||
|
|
||||||
/// Rays have an origin and a direction. This datatype is the 'ray' in 'raytracer'.
|
/// Rays have an origin and a direction. This datatype is the 'ray' in 'raytracer'.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Ray {
|
pub struct Ray {
|
||||||
pub origin: Tuple,
|
pub origin: Tuple,
|
||||||
pub direction: Tuple,
|
pub direction: Tuple,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user