Beatmup
|
2D point class More...
#include <geometry.h>
Public Member Functions | |
numeric | getX () const |
numeric | getY () const |
bool | operator== (const CustomPoint< numeric > &_) const |
bool | operator!= (const CustomPoint< numeric > &_) const |
CustomPoint< numeric > | operator+ (const CustomPoint< numeric > &_) const |
CustomPoint< numeric > | operator- (const CustomPoint< numeric > &_) const |
CustomPoint< numeric > | operator* (const CustomPoint< numeric > &_) const |
CustomPoint< numeric > | operator/ (const CustomPoint< numeric > &_) const |
CustomPoint< numeric > | operator+ (numeric _) const |
CustomPoint< numeric > | operator- (numeric _) const |
CustomPoint< numeric > | operator* (numeric _) const |
CustomPoint< numeric > | operator/ (numeric _) const |
void | translate (numeric x, numeric y) |
CustomPoint () | |
CustomPoint (numeric x, numeric y) | |
numeric | hypot2 () const |
bool | isInsideAxesSpan (numeric scaleX, numeric scaleY) const |
operator CustomPoint< float > () const | |
Typecast to float-valued coordinates. More... | |
operator CustomPoint< int > () const | |
Typecast to integer valued coordinates. More... | |
Public Attributes | |
numeric | x |
numeric | y |
Static Public Attributes | |
static const CustomPoint | ZERO = CustomPoint<T>(0, 0) |
2D point class
Definition at line 38 of file geometry.h.
|
inline |
Definition at line 90 of file geometry.h.
|
inline |
|
inline |
Definition at line 42 of file geometry.h.
|
inline |
Definition at line 46 of file geometry.h.
|
inline |
|
inline |
|
inline |
Definition at line 58 of file geometry.h.
|
inline |
Definition at line 62 of file geometry.h.
|
inline |
Definition at line 66 of file geometry.h.
|
inline |
Definition at line 70 of file geometry.h.
|
inline |
Definition at line 74 of file geometry.h.
|
inline |
Definition at line 78 of file geometry.h.
|
inline |
Definition at line 82 of file geometry.h.
|
inline |
Definition at line 86 of file geometry.h.
|
inline |
|
inline |
|
inline |
|
inline |
Typecast to float-valued coordinates.
Definition at line 109 of file geometry.h.
|
inline |
Typecast to integer valued coordinates.
Definition at line 117 of file geometry.h.
numeric Beatmup::CustomPoint< numeric >::x |
Definition at line 40 of file geometry.h.
numeric Beatmup::CustomPoint< numeric >::y |
Definition at line 40 of file geometry.h.
|
static |
Definition at line 122 of file geometry.h.