Update documentation on quaternions

This commit is contained in:
Markus Winter authored and Stephen Canon committed 2025-08-14 21:46:07 -04:00
1 parent 2bf3285bde
commit 69100e86b4
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
// Copyright (c) 2019 - 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
+2 -2
View File
@@ -43,10 +43,10 @@ public struct Quaternion<RealType> where RealType: Real & SIMDScalar {
@usableFromInline @inline(__always)
internal var components: SIMD4<RealType>
/// A quaternion constructed from given 4-dimensional vector.
/// A quaternion constructed from given 4-dimensional SIMD vector.
///
/// Creates a new quaternion by reading the values of the SIMD vector
/// as components of a quaternion with teh scalar part first, i.e. in the form of:
/// as components of a quaternion with the scalar part first, i.e. in the form of:
///
/// a + bi + cj + dk
@usableFromInline @inline(__always)
+1 -1
View File
@@ -2,7 +2,7 @@
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
// Copyright (c) 2019 - 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information