Skip to content

Commit 2870cf3

Browse files
authored
Merge pull request #11626 from apple/quaternions-swift-4.0
[4.0] Fix Quaternions init from vector
2 parents 0899bd3 + 44ebe0b commit 2870cf3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

stdlib/public/SDK/simd/Quaternion.swift.gyb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ extension ${quat} {
4343
vector = simd_make_${vec4}(imag, real)
4444
}
4545

46-
/// Construct a quaternion from a vector; the imaginary parts are the first
47-
/// three components of the vector, and the real part is the last component.
48-
@_transparent
49-
public init(vector: ${vec4}) {
50-
self.vector = vector
51-
}
52-
5346
/// A quaternion whose action is a rotation by `angle` radians about `axis`.
5447
///
5548
/// - Parameters:

0 commit comments

Comments
 (0)