Skip to content

Commit 0c4d402

Browse files
markuswntrstephentyrone
authored andcommitted
Rename transformCanonicalized to canonicalizedTransform
1 parent c3206e8 commit 0c4d402

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/QuaternionModule/Quaternion.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ extension Quaternion {
273273
///
274274
/// See also:
275275
/// -
276-
/// - `.transformCanonicalized`
276+
/// - `.canonicalizedTransform`
277277
@_transparent
278278
public var canonicalized: Self {
279279
guard !isZero else { return .zero }
@@ -298,7 +298,7 @@ extension Quaternion {
298298
/// -
299299
/// - `.canonicalized`
300300
@_transparent
301-
public var transformCanonicalized: Self {
301+
public var canonicalizedTransform: Self {
302302
var canonical = canonicalized
303303
if canonical.real.sign == .plus { return canonical }
304304
// Clear the signbit of real even for -0
@@ -450,7 +450,7 @@ extension Quaternion: Hashable {
450450
// (while unfortunately producing some collisions for people who are not,
451451
// but not in too catastrophic of a fashion).
452452
if isFinite {
453-
transformCanonicalized.components.hash(into: &hasher)
453+
canonicalizedTransform.components.hash(into: &hasher)
454454
} else {
455455
hasher.combine(RealType.infinity)
456456
}

0 commit comments

Comments
 (0)