From e5b84606f5d91be205ce9c70ea9c403e6e802ec4 Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Mon, 15 Jun 2020 07:51:51 +0200 Subject: [PATCH] Update rotation equals documentation on Quaternion --- Sources/QuaternionModule/Quaternion.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Sources/QuaternionModule/Quaternion.swift b/Sources/QuaternionModule/Quaternion.swift index 6f9410c..f0cb546 100644 --- a/Sources/QuaternionModule/Quaternion.swift +++ b/Sources/QuaternionModule/Quaternion.swift @@ -365,11 +365,15 @@ extension Quaternion: Hashable { return lhs.components == rhs.components } - /// Returns a Boolean value indicating whether the rotation in *R³* of this - /// quaternion equals the rotation of `other`. + /// Rotation equality comparison /// /// This method tests for rotation-wise equality in *R³*, where both `q == q` - /// but also `q == -q` is `true`. + /// but also `q == -q` are `true`. + /// + /// - Parameters: + /// - other: The value to compare. + /// - Returns: Boolean value indicating whether the rotation in *R³* of this + /// quaternion equals the rotation of `other`. @_transparent public func rotationEquals(_ other: Quaternion) -> Bool { // Identify all numbers with either component non-finite as a single "point at infinity".