30 matrix(aMatrix), position(aPosition)
34 matrix(rectangle.
width(), rectangle.
height()), position(rectangle.getX1(), rectangle.getY1())
2x3 affine mapping containing a 2x2 matrix and a 2D point
void translate(const Point &shift)
Translates the mapping.
void invert()
Inverts the mapping.
void setCenterPosition(const Point &newPos)
Adjusts the mapping origin so that the center of the axes box matches a given point.
void scale(float factor, const Point &fixedPoint=Point::ZERO)
Scales the mapping around a given point in target domain.
void rotateDegrees(float angle, const Point &fixedPoint=Point::ZERO)
Rotates the mapping around a given point in target domain.
AffineMapping getInverse() const
Returns inverse mapping.
bool isPointInside(const Point &point) const
Tests whether a point from the output domain is inside the input axes span.
AffineMapping operator*(const AffineMapping &mapping) const
Composition of two mappings.
static const AffineMapping IDENTITY
void setElements(float a11, float a12, float a21, float a22)
Sets matrix element values.
CustomMatrix2 getInverse() const
Computes inverse transformation.
void rotateDegrees(float angle)
static const CustomMatrix2 IDENTITY
void scale(numeric factor)
bool isPointInsideAxes(numeric x, numeric y, numeric w, numeric h) const
Checks whether a given input point is inside the unit square when transformed.
static const CustomPoint ZERO
jobject jlong jint jint y
Beatmup::AffineMapping & mapping
layer getMapping().setCenterPosition(Beatmup jlong jfloat factor