@@ -89,55 +89,31 @@ extension Quaternion {
89
89
90
90
/// The quaternion with the imaginary unit **i** one, i.e. `0 + i + 0j + 0k`.
91
91
///
92
- /// See also:
93
- /// -
94
- /// - .zero
95
- /// - .one
96
- /// - .j
97
- /// - .k
98
- /// - .infinity
92
+ /// See also `.zero`, `.one`, `.j`, `.k` and `.infinity`.
99
93
@_transparent
100
94
public static var i : Quaternion {
101
95
Quaternion ( imaginary: SIMD3 ( 1 , 0 , 0 ) )
102
96
}
103
97
104
98
/// The quaternion with the imaginary unit **j** one, i.e. `0 + 0i + j + 0k`.
105
99
///
106
- /// See also:
107
- /// -
108
- /// - .zero
109
- /// - .one
110
- /// - .i
111
- /// - .k
112
- /// - .infinity
100
+ /// See also `.zero`, `.one`, `.i`, `.k` and `.infinity`.
113
101
@_transparent
114
102
public static var j : Quaternion {
115
103
Quaternion ( imaginary: SIMD3 ( 0 , 1 , 0 ) )
116
104
}
117
105
118
106
/// The quaternion with the imaginary unit **k** one, i.e. `0 + 0i + 0j + k`.
119
107
///
120
- /// See also:
121
- /// -
122
- /// - .zero
123
- /// - .one
124
- /// - .i
125
- /// - .j
126
- /// - .infinity
108
+ /// See also `.zero`, `.one`, `.i`, `.j` and `.infinity`.
127
109
@_transparent
128
110
public static var k : Quaternion {
129
111
Quaternion ( imaginary: SIMD3 ( 0 , 0 , 1 ) )
130
112
}
131
113
132
114
/// The point at infinity.
133
115
///
134
- /// See also:
135
- /// -
136
- /// - .zero
137
- /// - .one
138
- /// - .i
139
- /// - .j
140
- /// - .k
116
+ /// See also `.zero`, `.one`, `.i`, `.j` and `.k`.
141
117
@_transparent
142
118
public static var infinity : Quaternion {
143
119
Quaternion ( . infinity)
@@ -147,13 +123,7 @@ extension Quaternion {
147
123
///
148
124
/// A quaternion is finite if neither component is an infinity or nan.
149
125
///
150
- /// See also:
151
- /// -
152
- /// - `.isNormal`
153
- /// - `.isSubnormal`
154
- /// - `.isZero`
155
- /// - `.isReal`
156
- /// - `.isPure`
126
+ /// See also `.isNormal`, `.isSubnormal`, `.isZero`, `.isReal`, `.isPure`.
157
127
@_transparent
158
128
public var isFinite : Bool {
159
129
return components. x. isFinite
@@ -168,13 +138,7 @@ extension Quaternion {
168
138
/// are normal. A floating-point number representing one of the components is normal
169
139
/// if its exponent allows a full-precision representation.
170
140
///
171
- /// See also:
172
- /// -
173
- /// - `.isFinite`
174
- /// - `.isSubnormal`
175
- /// - `.isZero`
176
- /// - `.isReal`
177
- /// - `.isPure`
141
+ /// See also `.isFinite`, `.isSubnormal`, `.isZero`, `.isReal`, `.isPure`.
178
142
@_transparent
179
143
public var isNormal : Bool {
180
144
return isFinite && (
@@ -191,13 +155,7 @@ extension Quaternion {
191
155
/// computation is subnormal, underflow has occurred and the result generally does not have full
192
156
/// precision.
193
157
///
194
- /// See also:
195
- /// -
196
- /// - `.isFinite`
197
- /// - `.isNormal`
198
- /// - `.isZero`
199
- /// - `.isReal`
200
- /// - `.isPure`
158
+ /// See also `.isFinite`, `.isNormal`, `.isZero`, `.isReal`, `.isPure`.
201
159
@_transparent
202
160
public var isSubnormal : Bool {
203
161
isFinite && !isNormal && !isZero
@@ -207,13 +165,7 @@ extension Quaternion {
207
165
///
208
166
/// A quaternion is zero if the real and *all* imaginary components are zero.
209
167
///
210
- /// See also:
211
- /// -
212
- /// - `.isFinite`
213
- /// - `.isNormal`
214
- /// - `.isSubnormal`
215
- /// - `.isReal`
216
- /// - `.isPure`
168
+ /// See also `.isFinite`, `.isNormal`, `.isSubnormal`, `.isReal`, `.isPure`.
217
169
@_transparent
218
170
public var isZero : Bool {
219
171
components == . zero
@@ -223,13 +175,7 @@ extension Quaternion {
223
175
///
224
176
/// A quaternion is real if *all* imaginary components are zero.
225
177
///
226
- /// See also:
227
- /// -
228
- /// - `.isFinite`
229
- /// - `.isNormal`
230
- /// - `.isSubnormal`
231
- /// - `.isZero`
232
- /// - `.isPure`
178
+ /// See also `.isFinite`, `.isNormal`, `.isSubnormal`, `.isZero`, `.isPure`.
233
179
@_transparent
234
180
public var isReal : Bool {
235
181
imaginary == . zero
@@ -239,13 +185,7 @@ extension Quaternion {
239
185
///
240
186
/// A quaternion is pure if the real component is zero.
241
187
///
242
- /// See also:
243
- /// -
244
- /// - `.isFinite`
245
- /// - `.isNormal`
246
- /// - `.isSubnormal`
247
- /// - `.isZero`
248
- /// - `.isReal`
188
+ /// See also `.isFinite`, `.isNormal`, `.isSubnormal`, `.isZero`, `.isReal`.
249
189
@_transparent
250
190
public var isPure : Bool {
251
191
real. isZero
@@ -267,9 +207,7 @@ extension Quaternion {
267
207
/// for some serialization tasks. It's also a useful implementation detail for
268
208
/// some primitive operations.
269
209
///
270
- /// See also:
271
- /// -
272
- /// - `.canonicalizedTransform`
210
+ /// See also `.canonicalizedTransform`.
273
211
@_transparent
274
212
public var canonicalized : Self {
275
213
guard !isZero else { return . zero }
@@ -290,9 +228,7 @@ extension Quaternion {
290
228
/// If the RealType admits non-canonical representations, the x, y, z and r
291
229
/// components are canonicalized in the result.
292
230
///
293
- /// See also:
294
- /// -
295
- /// - `.canonicalized`
231
+ /// See also `.canonicalized`.
296
232
@_transparent
297
233
public var canonicalizedTransform : Self {
298
234
let canonical = canonicalized
0 commit comments