mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix comment typos, doubled words, grammar errors, and copy-paste mistakes
libeigen/eigen!2173 Closes #3034 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
@@ -200,7 +200,7 @@ struct unitOrthogonal_selector<Derived, 3> {
|
||||
EIGEN_DEVICE_FUNC static inline VectorType run(const Derived& src) {
|
||||
VectorType perp;
|
||||
/* Let us compute the crossed product of *this with a vector
|
||||
* that is not too close to being colinear to *this.
|
||||
* that is not too close to being collinear to *this.
|
||||
*/
|
||||
|
||||
/* unless the x and y coords are both close to zero, we can
|
||||
@@ -213,7 +213,7 @@ struct unitOrthogonal_selector<Derived, 3> {
|
||||
perp.coeffRef(2) = 0;
|
||||
}
|
||||
/* if both x and y are close to zero, then the vector is close
|
||||
* to the z-axis, so it's far from colinear to the x-axis for instance.
|
||||
* to the z-axis, so it's far from collinear to the x-axis for instance.
|
||||
* So we take the crossed product with (1,0,0) and normalize it.
|
||||
*/
|
||||
else {
|
||||
@@ -242,7 +242,7 @@ struct unitOrthogonal_selector<Derived, 2> {
|
||||
* \returns a unit vector which is orthogonal to \c *this
|
||||
*
|
||||
* The size of \c *this must be at least 2. If the size is exactly 2,
|
||||
* then the returned vector is a counter clock wise rotation of \c *this, i.e., (-y,x).normalized().
|
||||
* then the returned vector is a counter-clockwise rotation of \c *this, i.e., (-y,x).normalized().
|
||||
*
|
||||
* \sa cross()
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Eigen {
|
||||
*
|
||||
* \tparam Scalar_ the scalar type, i.e., the type of the coefficients
|
||||
*
|
||||
* This class is equivalent to a single scalar representing a counter clock wise rotation
|
||||
* This class is equivalent to a single scalar representing a counter-clockwise rotation
|
||||
* as a single angle in radian. It provides some additional features such as the automatic
|
||||
* conversion from/to a 2x2 rotation matrix. Moreover this class aims to provide a similar
|
||||
* interface to Quaternion in order to facilitate the writing of generic algorithms
|
||||
@@ -57,7 +57,7 @@ class Rotation2D : public RotationBase<Rotation2D<Scalar_>, 2> {
|
||||
Scalar m_angle;
|
||||
|
||||
public:
|
||||
/** Construct a 2D counter clock wise rotation from the angle \a a in radian. */
|
||||
/** Construct a 2D counter-clockwise rotation from the angle \a a in radian. */
|
||||
EIGEN_DEVICE_FUNC explicit inline Rotation2D(const Scalar& a) : m_angle(a) {}
|
||||
|
||||
/** Default constructor without initialization. The represented rotation is undefined. */
|
||||
|
||||
@@ -745,7 +745,7 @@ Transform<Scalar, Dim, Mode, Options>& Transform<Scalar, Dim, Mode, Options>::op
|
||||
|
||||
/** \returns a QMatrix from \c *this assuming the dimension is 2.
|
||||
*
|
||||
* \warning this conversion might loss data if \c *this is not affine
|
||||
* \warning this conversion might lose data if \c *this is not affine
|
||||
*
|
||||
* This function is available only if the token EIGEN_QT_SUPPORT is defined.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user