Rename transformCanonicalized to canonicalizedTransform

This commit is contained in:
Markus Winter authored and Stephen Canon committed 2025-08-14 21:46:30 -04:00
1 parent a5c6f27f26
commit fb718d6f74
1 file changed
+3 -3
+3 -3
View File
@@ -273,7 +273,7 @@ extension Quaternion {
///
/// See also:
/// -
/// - `.transformCanonicalized`
/// - `.canonicalizedTransform`
@_transparent
public var canonicalized: Self {
guard !isZero else { return .zero }
@@ -298,7 +298,7 @@ extension Quaternion {
/// -
/// - `.canonicalized`
@_transparent
public var transformCanonicalized: Self {
public var canonicalizedTransform: Self {
var canonical = canonicalized
if canonical.real.sign == .plus { return canonical }
// Clear the signbit of real even for -0
@@ -450,7 +450,7 @@ extension Quaternion: Hashable {
// (while unfortunately producing some collisions for people who are not,
// but not in too catastrophic of a fashion).
if isFinite {
transformCanonicalized.components.hash(into: &hasher)
canonicalizedTransform.components.hash(into: &hasher)
} else {
hasher.combine(RealType.infinity)
}