From eecfa66461596d2f336f4fb8cc4cd4dd3ca0b1e6 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 25 Sep 2024 19:21:12 +0200 Subject: [PATCH] Add `LineSegment` --- crates/fj-core/src/geometry/traits.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/fj-core/src/geometry/traits.rs b/crates/fj-core/src/geometry/traits.rs index 0106db566..599fbeb9c 100644 --- a/crates/fj-core/src/geometry/traits.rs +++ b/crates/fj-core/src/geometry/traits.rs @@ -92,3 +92,10 @@ impl GenPolyline for Path { } } } + +/// # A line segment +#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)] +pub struct LineSegment { + /// # The points that bound the line segment + pub points: [Point; 2], +}