Skip to content

Commit

Permalink
add is_zero_area doc alias
Browse files Browse the repository at this point in the history
  • Loading branch information
juliapaci committed Aug 31, 2024
1 parent 8da1a8c commit b2f4739
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl Triangle {
}

/// Whether this [`Triangle`] has zero area
#[doc(alias = "is_empty")]
#[inline]
pub fn is_zero_area(&self) -> bool {
self.area() == 0.0
Expand Down

0 comments on commit b2f4739

Please sign in to comment.