Moved x()/y()/z() and w() access functions to DenseBase; they are now available for Arrays as well.

This commit is contained in:
Hauke Heibel
2010-03-04 18:33:51 +01:00
parent 68d94d914e
commit 1723068694
3 changed files with 17 additions and 17 deletions

View File

@@ -280,6 +280,15 @@ template<typename Derived> class DenseBase
typedef Block<Derived, 1, ei_traits<Derived>::ColsAtCompileTime> RowXpr;
#endif // not EIGEN_PARSED_BY_DOXYGEN
const CoeffReturnType x() const;
const CoeffReturnType y() const;
const CoeffReturnType z() const;
const CoeffReturnType w() const;
Scalar& x();
Scalar& y();
Scalar& z();
Scalar& w();
/** Copies \a other into *this. \returns a reference to *this. */
template<typename OtherDerived>
Derived& operator=(const DenseBase<OtherDerived>& other);