diff --git a/codegen/templates/quat.rs.tera b/codegen/templates/quat.rs.tera index 2caeaa7c..a00568d3 100644 --- a/codegen/templates/quat.rs.tera +++ b/codegen/templates/quat.rs.tera @@ -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 { diff --git a/src/f32/coresimd/quat.rs b/src/f32/coresimd/quat.rs index eca7a0ee..85189ed6 100644 --- a/src/f32/coresimd/quat.rs +++ b/src/f32/coresimd/quat.rs @@ -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 { diff --git a/src/f32/neon/quat.rs b/src/f32/neon/quat.rs index 7dca3a42..057c5808 100644 --- a/src/f32/neon/quat.rs +++ b/src/f32/neon/quat.rs @@ -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 { diff --git a/src/f32/scalar/quat.rs b/src/f32/scalar/quat.rs index cf5d6482..d7d16116 100644 --- a/src/f32/scalar/quat.rs +++ b/src/f32/scalar/quat.rs @@ -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 { diff --git a/src/f32/sse2/quat.rs b/src/f32/sse2/quat.rs index a430a4f1..b1872bae 100644 --- a/src/f32/sse2/quat.rs +++ b/src/f32/sse2/quat.rs @@ -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 { diff --git a/src/f32/wasm32/quat.rs b/src/f32/wasm32/quat.rs index 6632a880..ee24bbff 100644 --- a/src/f32/wasm32/quat.rs +++ b/src/f32/wasm32/quat.rs @@ -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 { diff --git a/src/f64/dquat.rs b/src/f64/dquat.rs index 9eac3637..0d78be4d 100644 --- a/src/f64/dquat.rs +++ b/src/f64/dquat.rs @@ -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 {