mirror of
https://github.com/apple/swift-numerics
synced 2026-11-26 04:57:53 +00:00
Update Quaternions README.md
This commit is contained in:
1 parent
c2184941ab
commit
0b6cdc3844
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(1, (1,1,1)) // q = 1 + i + j + k
|
||||
2> let q = Quaternion(real: 1, imaginary: SIMD3(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