Skip to content

Commit

Permalink
Add implementation note
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Aug 10, 2022
1 parent f4bf6f6 commit a73cb24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/fj-kernel/src/algorithms/triangulate/polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ impl Polygon {
contains
}

/// Check whether the polygon contains a point
///
/// # Implementation Note
///
/// This code is being duplicated by the `Contains<Point<2>>` implementation
/// for `Face`. It would be nice to be able to consolidate the duplication,
/// but this has turned out to be difficult.
pub fn contains_point(
&self,
point: impl Into<Point<2>>,
Expand Down

0 comments on commit a73cb24

Please sign in to comment.