mirror of
https://github.com/apple/swift-numerics
synced 2026-11-27 05:04:26 +00:00
Update rotation equals documentation on Quaternion
This commit is contained in:
1 parent
273c6f7e54
commit
e5b84606f5
1 file changed
+7
-3
@@ -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".
|
||||
|
||||
Reference in new issue
Block a user