Use shorthand isZero operator on SIMD storage of quaternion

This commit is contained in:
Markus Winter authored and Stephen Canon committed 2025-08-14 21:46:17 -04:00
1 parent bb05e58135
commit fcab66685d
1 file changed
+1 -4
+1 -4
View File
@@ -204,10 +204,7 @@ extension Quaternion {
/// - `.isPure`
@_transparent
public var isZero: Bool {
return components.x.isZero
&& components.y.isZero
&& components.z.isZero
&& components.w.isZero
components == .zero
}
/// True if this value is only defined by the imaginary part (`real == .zero`)