Skip to content

Commit

Permalink
Use array
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Oct 18, 2024
1 parent 7c0e90f commit 09de278
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions geo-traits/src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,8 @@ pub trait TriangleTrait: Sized {
fn third(&self) -> Self::PointType<'_>;

/// Access the three underlying points
fn points(
&self,
) -> (
Self::PointType<'_>,
Self::PointType<'_>,
Self::PointType<'_>,
) {
(self.first(), self.second(), self.third())
fn points(&self) -> [Self::PointType<'_>; 3] {
[self.first(), self.second(), self.third()]
}
}

Expand Down

0 comments on commit 09de278

Please sign in to comment.