Remove unnecessary pubs

This commit is contained in:
Hanno Braun 2023-11-23 17:20:07 +01:00
parent 71888c76aa
commit 1368e72d0e

View File

@ -90,12 +90,12 @@ impl Polygon {
true
}
pub fn contains_exterior_edge(&self, edge: Segment<2>) -> bool {
fn contains_exterior_edge(&self, edge: Segment<2>) -> bool {
self.exterior.segments().contains(&edge)
|| self.exterior.segments().contains(&edge.reverse())
}
pub fn contains_interior_edge(&self, edge: Segment<2>) -> bool {
fn contains_interior_edge(&self, edge: Segment<2>) -> bool {
let mut contains = false;
for chain in &self.interiors {
@ -113,7 +113,7 @@ impl Polygon {
/// 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>>) -> bool {
fn contains_point(&self, point: impl Into<Point<2>>) -> bool {
let ray = HorizontalRayToTheRight {
origin: point.into(),
};