beatmup.AffineMapping

class beatmup.AffineMapping

2x3 affine mapping containing a 2x2 matrix and a 2D point

__init__(self: beatmup.AffineMapping) None

Methods

__init__(self)

get_inverse(*args, **kwargs)

Overloaded function.

get_matrix(self)

Returns the mapping matrix

get_position(self)

Returns the mapping origin

invert(self)

Inverts the mapping

is_point_inside(self, point)

Tests whether a point from the output domain is inside the input axes span

rotate_degrees(self, angle[, fixed_point])

Rotates the mapping around a given point in target domain

scale(self, factor[, fixed_point])

Scales the mapping around a given point in target domain

set_center_position(self, point)

Adjusts the mapping origin so that the center of the axes box matches a given point

translate(self, shift)

Translates the mapping