Skip to content

Commit

Permalink
Add doc comment to Quat::is_nan
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGunflame committed Sep 28, 2024
1 parent b4171d1 commit a9ad8b4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions codegen/templates/quat.rs.tera
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ impl {{ self_t }} {
{{ vec4_t }}::from(self).is_finite()
}

/// Returns `true` if any elements are `NAN`.
#[inline]
#[must_use]
pub fn is_nan(self) -> bool {
Expand Down
1 change: 1 addition & 0 deletions src/f32/coresimd/quat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ impl Quat {
Vec4::from(self).is_finite()
}

/// Returns `true` if any elements are `NAN`.
#[inline]
#[must_use]
pub fn is_nan(self) -> bool {
Expand Down
1 change: 1 addition & 0 deletions src/f32/neon/quat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ impl Quat {
Vec4::from(self).is_finite()
}

/// Returns `true` if any elements are `NAN`.
#[inline]
#[must_use]
pub fn is_nan(self) -> bool {
Expand Down
1 change: 1 addition & 0 deletions src/f32/scalar/quat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ impl Quat {
Vec4::from(self).is_finite()
}

/// Returns `true` if any elements are `NAN`.
#[inline]
#[must_use]
pub fn is_nan(self) -> bool {
Expand Down
1 change: 1 addition & 0 deletions src/f32/sse2/quat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ impl Quat {
Vec4::from(self).is_finite()
}

/// Returns `true` if any elements are `NAN`.
#[inline]
#[must_use]
pub fn is_nan(self) -> bool {
Expand Down
1 change: 1 addition & 0 deletions src/f32/wasm32/quat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ impl Quat {
Vec4::from(self).is_finite()
}

/// Returns `true` if any elements are `NAN`.
#[inline]
#[must_use]
pub fn is_nan(self) -> bool {
Expand Down
1 change: 1 addition & 0 deletions src/f64/dquat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ impl DQuat {
DVec4::from(self).is_finite()
}

/// Returns `true` if any elements are `NAN`.
#[inline]
#[must_use]
pub fn is_nan(self) -> bool {
Expand Down

0 comments on commit a9ad8b4

Please sign in to comment.