Skip to content

Commit

Permalink
Add doc aliases for perp_dot (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
khyperia committed May 26, 2021
1 parent a0143c0 commit 466d07f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vec2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ macro_rules! impl_vec2_signed_methods {
}

/// The perpendicular dot product of `self` and `other`.
/// Also known as the wedge product, 2d cross product, and determinant.
#[inline(always)]
#[cfg_attr(
docsrs,
doc(alias = "wedge"),
doc(alias = "cross"),
doc(alias = "determinant")
)]
pub fn perp_dot(self, other: $vec2) -> $t {
self.0.perp_dot(other.0)
}
Expand Down

0 comments on commit 466d07f

Please sign in to comment.