From 69100e86b493349ea5b939d0937076c7b375b59f Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Wed, 3 Jun 2020 14:53:13 +0200 Subject: [PATCH] Update documentation on quaternions --- Sources/QuaternionModule/Arithmetic.swift | 2 +- Sources/QuaternionModule/Quaternion.swift | 4 ++-- Tests/QuaternionTests/ArithmeticTests.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/QuaternionModule/Arithmetic.swift b/Sources/QuaternionModule/Arithmetic.swift index 6aec080..0e0c909 100644 --- a/Sources/QuaternionModule/Arithmetic.swift +++ b/Sources/QuaternionModule/Arithmetic.swift @@ -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 diff --git a/Sources/QuaternionModule/Quaternion.swift b/Sources/QuaternionModule/Quaternion.swift index aa1d5bc..ee0916f 100644 --- a/Sources/QuaternionModule/Quaternion.swift +++ b/Sources/QuaternionModule/Quaternion.swift @@ -43,10 +43,10 @@ public struct Quaternion where RealType: Real & SIMDScalar { @usableFromInline @inline(__always) internal var components: SIMD4 - /// 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) diff --git a/Tests/QuaternionTests/ArithmeticTests.swift b/Tests/QuaternionTests/ArithmeticTests.swift index 07c126c..72abdd0 100644 --- a/Tests/QuaternionTests/ArithmeticTests.swift +++ b/Tests/QuaternionTests/ArithmeticTests.swift @@ -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