Update rotation equals documentation on Quaternion

This commit is contained in:
Markus Winter authored and Stephen Canon committed 2025-08-14 21:46:23 -04:00
1 parent 273c6f7e54
commit e5b84606f5
1 file changed
+7 -3
+7 -3
View File
@@ -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".