|
Beatmup
|
2x3 affine mapping containing a 2x2 matrix and a 2D point More...
#include <geometry.h>
Public Member Functions | |
| AffineMapping () | |
| AffineMapping (const Matrix2 &aMatrix, const Point &aPosition) | |
| AffineMapping (const Rectangle &rectangle) | |
| Creates a mapping of unit square to a given rectangle. More... | |
| Point | getPosition () const |
| Matrix2 | getMatrix () const |
| Point | operator() (const Point &point) const |
| Maps a point. More... | |
| AffineMapping | operator* (const AffineMapping &mapping) const |
| Composition of two mappings. More... | |
| void | setIdentity () |
| void | invert () |
| Inverts the mapping. More... | |
| AffineMapping | getInverse () const |
| Returns inverse mapping. More... | |
| Point | getInverse (const Point &pos) const |
| Computes inverse mapping of a point. More... | |
| Point | getInverse (float x, float y) const |
| void | setCenterPosition (const Point &newPos) |
| Adjusts the mapping origin so that the center of the axes box matches a given point. More... | |
| void | translate (const Point &shift) |
| Translates the mapping. More... | |
| void | scale (float factor, const Point &fixedPoint=Point::ZERO) |
| Scales the mapping around a given point in target domain. More... | |
| void | rotateDegrees (float angle, const Point &fixedPoint=Point::ZERO) |
| Rotates the mapping around a given point in target domain. More... | |
| bool | isPointInside (const Point &point) const |
| Tests whether a point from the output domain is inside the input axes span. More... | |
| bool | isPointInside (float x, float y) const |
| bool | isPointInside (float x, float y, float width, float height) const |
Public Attributes | |
| Matrix2 | matrix |
| Point | position |
Static Public Attributes | |
| static const AffineMapping | IDENTITY |
2x3 affine mapping containing a 2x2 matrix and a 2D point
Definition at line 639 of file geometry.h.
| AffineMapping::AffineMapping | ( | ) |
Definition at line 27 of file geometry.cpp.
Definition at line 29 of file geometry.cpp.
| AffineMapping::AffineMapping | ( | const Rectangle & | rectangle | ) |
Creates a mapping of unit square to a given rectangle.
| [in] | rectangle | The rectangle |
Definition at line 33 of file geometry.cpp.
|
inline |
Definition at line 653 of file geometry.h.
|
inline |
Definition at line 657 of file geometry.h.
Maps a point.
Definition at line 664 of file geometry.h.
| AffineMapping AffineMapping::operator* | ( | const AffineMapping & | mapping | ) | const |
| void AffineMapping::setIdentity | ( | ) |
Definition at line 42 of file geometry.cpp.
| void AffineMapping::invert | ( | ) |
Inverts the mapping.
Definition at line 47 of file geometry.cpp.
| AffineMapping AffineMapping::getInverse | ( | ) | const |
Returns inverse mapping.
Definition at line 52 of file geometry.cpp.
| Point AffineMapping::getInverse | ( | float | x, |
| float | y | ||
| ) | const |
Definition at line 63 of file geometry.cpp.
| void AffineMapping::setCenterPosition | ( | const Point & | newPos | ) |
Adjusts the mapping origin so that the center of the axes box matches a given point.
Definition at line 67 of file geometry.cpp.
| void AffineMapping::translate | ( | const Point & | shift | ) |
Translates the mapping.
Definition at line 71 of file geometry.cpp.
| void AffineMapping::scale | ( | float | factor, |
| const Point & | fixedPoint = Point::ZERO |
||
| ) |
Scales the mapping around a given point in target domain.
Definition at line 75 of file geometry.cpp.
| void AffineMapping::rotateDegrees | ( | float | angle, |
| const Point & | fixedPoint = Point::ZERO |
||
| ) |
Rotates the mapping around a given point in target domain.
Definition at line 81 of file geometry.cpp.
| bool AffineMapping::isPointInside | ( | const Point & | point | ) | const |
Tests whether a point from the output domain is inside the input axes span.
Definition at line 87 of file geometry.cpp.
| bool AffineMapping::isPointInside | ( | float | x, |
| float | y | ||
| ) | const |
Definition at line 91 of file geometry.cpp.
| bool AffineMapping::isPointInside | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height | ||
| ) | const |
Definition at line 95 of file geometry.cpp.
| Matrix2 Beatmup::AffineMapping::matrix |
Definition at line 641 of file geometry.h.
| Point Beatmup::AffineMapping::position |
Definition at line 642 of file geometry.h.
|
static |
Definition at line 717 of file geometry.h.