Beatmup
|
Go to the source code of this file.
Classes | |
class | Beatmup::CustomPoint< numeric > |
2D point class More... | |
class | Beatmup::CustomRectangle< numeric > |
2D rectangle class All the utilities assume that the rectangle is normalized, e.g. More... | |
class | Beatmup::CustomMatrix2< numeric > |
2D affine transformation. More... | |
class | Beatmup::AffineMapping |
2x3 affine mapping containing a 2x2 matrix and a 2D point More... | |
Namespaces | |
Beatmup | |
std | |
Macros | |
#define | between(A, X, B) (((A) <= (X) && (X) <= (B)) || ((A) >= (X) && (X) >= (B))) |
#define | sqr(X) ((X)*(X)) |
Typedefs | |
using | Beatmup::Point = CustomPoint< float > |
using | Beatmup::Rectangle = CustomRectangle< float > |
using | Beatmup::Matrix2 = CustomMatrix2< float > |
using | Beatmup::IntPoint = CustomPoint< int > |
using | Beatmup::IntRectangle = CustomRectangle< int > |
Functions | |
template<typename T > | |
void | Beatmup::order (T &a, T &b) |
template<typename numeric > | |
CustomPoint< numeric > | Beatmup::operator- (const CustomPoint< numeric > &point) |
Point with negative coordinates. More... | |
template<typename numeric > | |
CustomPoint< numeric > | Beatmup::operator* (numeric val, const CustomPoint< numeric > &point) |
Product of a scalar and a point. More... | |
template<typename numeric > | |
CustomMatrix2< numeric > | Beatmup::operator* (numeric val, const CustomMatrix2< numeric > &matrix) |
Product of a scalar and a matrix. More... | |
template<typename numeric > | |
bool | Beatmup::operator&& (const CustomRectangle< numeric > &lhs, const CustomRectangle< numeric > &rhs) |
Checks whether two rectangles are of the same size. More... | |
template<typename numeric > | |
bool | Beatmup::operator== (const CustomRectangle< numeric > &lhs, const CustomRectangle< numeric > &rhs) |
Checks whether two rectangles are actually the same. More... | |
template<typename numeric > | |
CustomPoint< numeric > | std::min (const CustomPoint< numeric > &a, const CustomPoint< numeric > &b) |
template<typename numeric > | |
CustomPoint< numeric > | std::max (const CustomPoint< numeric > &a, const CustomPoint< numeric > &b) |
#define between | ( | A, | |
X, | |||
B | |||
) | (((A) <= (X) && (X) <= (B)) || ((A) >= (X) && (X) >= (B))) |
Definition at line 23 of file geometry.h.
#define sqr | ( | X | ) | ((X)*(X)) |
Definition at line 24 of file geometry.h.