mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Add LineSegment
This commit is contained in:
parent
81399b6253
commit
eecfa66461
@ -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],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user