All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <DoubleMatrix.h>
Public Member Functions | |
| Matrix2x2 () | |
| Matrix2x2 (const Matrix2x2 &o) | |
| Matrix2x2 (const Matrix< double > &o) | |
| Matrix2x2 | operator* (const Matrix2x2 &m) const |
| Point2D | operator* (const Point2D &p) const |
| void | rotation (const Angle &angle) |
| QGpCoreTools::Matrix2x2::Matrix2x2 | ( | ) | [inline] |
: DoubleMatrix(2, 2) {}
| QGpCoreTools::Matrix2x2::Matrix2x2 | ( | const Matrix2x2 & | o | ) | [inline] |
: DoubleMatrix(static_cast<const DoubleMatrix&>(o)) {}
| QGpCoreTools::Matrix2x2::Matrix2x2 | ( | const Matrix< double > & | o | ) | [inline] |
References QGpCoreTools::Matrix< T >::columnCount(), and QGpCoreTools::Matrix< T >::rowCount().
: DoubleMatrix(static_cast<const DoubleMatrix&>(o)) {ASSERT(o.columnCount()==2 && o.rowCount()==2);}
References QGpCoreTools::operator*().
{return DoubleMatrix::operator*(m);}
References QGpCoreTools::Matrix< double >::_d, QGpCoreTools::Point2D::setX(), QGpCoreTools::Point2D::setY(), QGpCoreTools::Point2D::x(), and QGpCoreTools::Point2D::y().
{
Point2D rp;
const double * values=_d->values();
rp.setX(values[0]*p.x()+values[2]*p.y());
rp.setY(values[1]*p.x()+values[3]*p.y());
return rp;
}
| void QGpCoreTools::Matrix2x2::rotation | ( | const Angle & | angle | ) | [inline] |
Sets matrix as a rotation matrix. The angle is counted using the right hand convention. Angle is in radians.
References QGpCoreTools::ZAxis.
Referenced by TapePositioningSystem::Cluster::setCoordinateSystem().
{
DoubleMatrix::rotation(ZAxis, angle);
}