|
16 | 16 |
|
17 | 17 | --- Constructs a new quaternion from a vector and a w parameter. Similarly to fromComponents, this method will not produce a normalized quaternion. |
18 | 18 | -- |
19 | | --- @tparam Vector vec imaginary component of the vector, stored in a vector. Uses [Vector][https://tweaked.cc/module/vector.html] type |
| 19 | +-- @tparam Vector vec imaginary component of the vector, stored in a vector. Uses [Vector](https://tweaked.cc/module/vector.html) type |
20 | 20 | -- @tparam number w Real component of the quaternion |
21 | 21 | -- @treturn The quaternion made from the given arguments |
22 | 22 | -- @usage q = quaternion.new(vec, w) |
|
36 | 36 |
|
37 | 37 | --- Constructs a new quaternion from the provided axis - angle parameters. The resulting quaternion is already normalized. |
38 | 38 | -- |
39 | | --- @tparam Vector axis Rotation axis that will be used for the quaternion. The axis does not need to be normalized. Uses [Vector][https://tweaked.cc/module/vector.html] type |
| 39 | +-- @tparam Vector axis Rotation axis that will be used for the quaternion. The axis does not need to be normalized. Uses [Vector](https://tweaked.cc/module/vector.html) type |
40 | 40 | -- @tparam number angle Angle in radians of the rotation |
41 | 41 | -- @treturn The quaternion representing the rotation described by the axis angle parameters |
42 | 42 | -- @usage q = quaternion.fromAxisAngle(axis, angle) |
@@ -174,7 +174,7 @@ local expect = require "cc.expect" |
174 | 174 | local expect = expect.expect |
175 | 175 |
|
176 | 176 | local quaternion = { |
177 | | - --- The imaginary component of the quaternion, stored in a [Vector][https://tweaked.cc/module/vector.html]. |
| 177 | + --- The imaginary component of the quaternion, stored in a [Vector](https://tweaked.cc/module/vector.html). |
178 | 178 | -- @field v |
179 | 179 | -- @tparam Vector v |
180 | 180 |
|
@@ -216,7 +216,7 @@ local quaternion = { |
216 | 216 | ) |
217 | 217 | end, |
218 | 218 |
|
219 | | - --- Multiplies a quaternion by a scalar value, another quaternion, or a [Vector][https://tweaked.cc/module/vector.html]. |
| 219 | + --- Multiplies a quaternion by a scalar value, another quaternion, or a [Vector](https://tweaked.cc/module/vector.html). |
220 | 220 | -- |
221 | 221 | -- @tparam Quaternion self The quaternion to multiply |
222 | 222 | -- @tparam number|Quaternion|Vector other The scalar value, quaternion, or vector to multiply with |
@@ -416,7 +416,7 @@ local quaternion = { |
416 | 416 | return 2 * math.acos(self.a) |
417 | 417 | end, |
418 | 418 |
|
419 | | - --- Gets the normalized axis of rotation corresponding to the rotation defined by the given quaternion. Uses [Vector][https://tweaked.cc/module/vector.html] type. |
| 419 | + --- Gets the normalized axis of rotation corresponding to the rotation defined by the given quaternion. Uses [Vector](https://tweaked.cc/module/vector.html) type. |
420 | 420 | -- |
421 | 421 | -- @tparam Quaternion self The quaternion to use as a rotation source |
422 | 422 | -- @treturn Vector The resulting axis |
|
0 commit comments