mirror of
https://github.com/apple/swift-numerics
synced 2026-11-28 05:14:31 +00:00
Use shorthand isZero operator on SIMD storage of quaternion
This commit is contained in:
1 parent
bb05e58135
commit
fcab66685d
1 file changed
+1
-4
@@ -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`)
|
||||
|
||||
Reference in new issue
Block a user