diff --git a/editoast/src/views/path/projection.rs b/editoast/src/views/path/projection.rs index 8cfa416d5b3..6b0c439f1a1 100644 --- a/editoast/src/views/path/projection.rs +++ b/editoast/src/views/path/projection.rs @@ -206,9 +206,12 @@ impl<'a> PathProjection<'a> { } } +/// Represent the intersection between a track range and a path, relative to the beginning of the path #[cfg_attr(test, derive(Debug, PartialEq))] pub struct Intersection { + /// Distance of the beginning of the intersection relative to the beginning of the path start: u64, + /// Distance of the end of the intersection relative to the beginning of the path end: u64, } impl From<(u64, u64)> for Intersection {