diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-06-10 17:34:41 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-06-15 21:31:02 +0200 |
commit | 9d2cc4dd766ca6538e17040b6ac845ed880ab0fe (patch) | |
tree | a674c1f10c2bb266b2cff88ef3d6d864ed932212 /src/gui/math3d | |
parent | 37bad1f43b33a460f402f16280719d3b49dd7b24 (diff) |
Fix typos in docs and comments
Found by codespell
Pick-to: 6.4
Change-Id: Ie3e301a23830c773a2e9aff487c702a223d246eb
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/math3d')
-rw-r--r-- | src/gui/math3d/qquaternion.cpp | 2 | ||||
-rw-r--r-- | src/gui/math3d/qvectornd.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/math3d/qquaternion.cpp b/src/gui/math3d/qquaternion.cpp index dba72d3e10..018f6fb731 100644 --- a/src/gui/math3d/qquaternion.cpp +++ b/src/gui/math3d/qquaternion.cpp @@ -460,7 +460,7 @@ void QQuaternion::getEulerAngles(float *pitch, float *yaw, float *roll) const // "A tutorial on SE(3) transformation parameterizations and on-manifold optimization". // We can only detect Gimbal lock when we normalize, which we can't do when - // length is nearly zero. Do so before multiplying co-ordinates, to avoid + // length is nearly zero. Do so before multiplying coordinates, to avoid // underflow. const float len = length(); const bool rescale = !qFuzzyIsNull(len); diff --git a/src/gui/math3d/qvectornd.cpp b/src/gui/math3d/qvectornd.cpp index 59991c9ac9..dcd7bdbcf8 100644 --- a/src/gui/math3d/qvectornd.cpp +++ b/src/gui/math3d/qvectornd.cpp @@ -179,7 +179,7 @@ QT_BEGIN_NAMESPACE /*! \fn void QVector2D::normalize() - Normalizes the currect vector in place. Nothing happens if this + Normalizes the current vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1. \sa length(), normalized() @@ -656,7 +656,7 @@ QDataStream &operator>>(QDataStream &stream, QVector2D &vector) /*! \fn void QVector3D::normalize() - Normalizes the currect vector in place. Nothing happens if this + Normalizes the current vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1. \sa length(), normalized() @@ -1332,7 +1332,7 @@ QDataStream &operator>>(QDataStream &stream, QVector3D &vector) /*! \fn void QVector4D::normalize() - Normalizes the currect vector in place. Nothing happens if this + Normalizes the current vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1. \sa length(), normalized() |