aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-08-28 21:44:56 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-08-28 21:44:56 +0000
commit7ea821d18e6b1294acf170b805c3c132c47f2f77 (patch)
tree196865782f422611721ce841373f9d77c3519c3c /Eigen/src/Geometry
parent80be1ea51582c92bf4dba2b4f104bb53b9628980 (diff)
spelling + some krazy directives
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r--Eigen/src/Geometry/Quaternion.h2
-rw-r--r--Eigen/src/Geometry/Transform.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h
index a0d32bec8..483d4c0d7 100644
--- a/Eigen/src/Geometry/Quaternion.h
+++ b/Eigen/src/Geometry/Quaternion.h
@@ -322,7 +322,7 @@ inline Quaternion<Scalar>& Quaternion<Scalar>::setFromTwoVectors(const MatrixBas
template <typename Scalar>
inline Quaternion<Scalar> Quaternion<Scalar>::inverse() const
{
- // FIXME should this funtion be called multiplicativeInverse and conjugate() be called inverse() or opposite() ??
+ // FIXME should this function be called multiplicativeInverse and conjugate() be called inverse() or opposite() ??
Scalar n2 = this->norm2();
if (n2 > 0)
return Quaternion(conjugate().coeffs() / n2);
diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h
index 9caaa2418..1d4efb7be 100644
--- a/Eigen/src/Geometry/Transform.h
+++ b/Eigen/src/Geometry/Transform.h
@@ -127,6 +127,13 @@ public:
inline QMatrix toQMatrix(void) const;
#endif
+ /** shortcut for m_matrix(row,col);
+ * \sa MatrixBase::operaror(int,int) const */
+ Scalar operator() (int row, int col) const { return m_matrix(row,col); }
+ /** shortcut for m_matrix(row,col);
+ * \sa MatrixBase::operaror(int,int) */
+ Scalar& operator() (int row, int col) { return m_matrix(row,col); }
+
/** \returns a read-only expression of the transformation matrix */
inline const MatrixType& matrix() const { return m_matrix; }
/** \returns a writable expression of the transformation matrix */