Add LineSegment

This commit is contained in:
Hanno Braun 2024-09-25 19:21:12 +02:00
parent 81399b6253
commit eecfa66461

View File

@ -92,3 +92,10 @@ impl<const D: usize> GenPolyline<D> for Path<D> {
}
}
}
/// # A line segment
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
pub struct LineSegment<const D: usize> {
/// # The points that bound the line segment
pub points: [Point<D>; 2],
}