mirror of
https://github.com/apple/swift-numerics
synced 2026-11-25 04:47:53 +00:00
Update Sources/QuaternionModule/README.md
Co-authored-by: Markus Winter <markus@wntr.me>
This commit is contained in:
1 parent
0b6cdc3844
commit
1bab0de693
1 file changed
+1
-1
@@ -4,7 +4,7 @@ This module provides a `Quaternion` type generic over an underlying `RealType`:
|
||||
|
||||
```swift
|
||||
1> import QuaternionModule
|
||||
2> let q = Quaternion(real: 1, imaginary: SIMD3(1, 1, 1)) // q = 1 + i + j + k
|
||||
2> let q = Quaternion(real: 1, imaginary: 1, 1, 1) // q = 1 + i + j + k
|
||||
```
|
||||
|
||||
The usual arithmetic operators are provided for Quaternions, many useful properties, plus conformances to the
|
||||
|
||||
Reference in new issue
Block a user