libAlgAudio
v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
|
#include <Utilities.hpp>
Public Member Functions | |
bool | IsInside (Point2D_< T > r, Size2D s) const |
bool | IsInside (const Rect &r) const |
bool | operator!= (const Point2D_< T > &other) const |
Point2D_< T > | operator* (const T &t) const |
Point2D_< T > | operator+ (const Point2D_< T > &other) const |
Point2D_< T > | operator+ (const Size2D &other) const |
Point2D_< T > & | operator+= (const Point2D_< T > &other) |
Point2D_< T > | operator- (const Point2D_< T > &other) const |
Point2D_< T > | operator- () const |
Point2D_< T > | operator- (const Size2D &other) const |
Point2D_< T > & | operator-= (const Point2D_< T > &other) |
Point2D_< T > | operator/ (const T &t) const |
bool | operator== (const Point2D_< T > &other) const |
Point2D_ (T x_=0, T y_=0) | |
template<typename Q > | |
Point2D_ (const Point2D_< Q > &other) | |
std::string | ToString () const |
Static Public Member Functions | |
static float | Distance (Point2D_< T > a, Point2D_< T > b) |
Public Attributes | |
T | x |
T | y |
A structure for representing points on a two-dimentional plane.
|
inline |
|
inline |
|
inlinestatic |
Calculates the Pythagorean distance between two points.
|
inline |
Returns true iff the point is within the rectangle spanned by the given point and size.
bool AlgAudio::Point2D_< T >::IsInside | ( | const Rect & | r | ) | const |
Returns true iff the point is within the rectangle.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
T AlgAudio::Point2D_< T >::x |
T AlgAudio::Point2D_< T >::y |