DISTRHO Plugin Framework
|
#include <Geometry.hpp>
Public Member Functions | |
Point () noexcept | |
Point (const T &x, const T &y) noexcept | |
Point (const Point< T > &pos) noexcept | |
const T & | getX () const noexcept |
const T & | getY () const noexcept |
void | setX (const T &x) noexcept |
void | setY (const T &y) noexcept |
void | setPos (const T &x, const T &y) noexcept |
void | setPos (const Point< T > &pos) noexcept |
void | moveBy (const T &x, const T &y) noexcept |
void | moveBy (const Point< T > &pos) noexcept |
bool | isZero () const noexcept |
bool | isNotZero () const noexcept |
Point< T > | operator+ (const Point< T > &pos) noexcept |
Point< T > | operator- (const Point< T > &pos) noexcept |
Point< T > & | operator= (const Point< T > &pos) noexcept |
Point< T > & | operator+= (const Point< T > &pos) noexcept |
Point< T > & | operator-= (const Point< T > &pos) noexcept |
bool | operator== (const Point< T > &pos) const noexcept |
bool | operator!= (const Point< T > &pos) const noexcept |
Friends | |
template<typename > | |
class | Line |
template<typename > | |
class | Circle |
template<typename > | |
class | Triangle |
template<typename > | |
class | Rectangle |
DGL Point class.
This class describes a single point in space, defined by an X and Y value.
Constructor using custom X and Y values.
Constructor using another Point class values.
|
noexcept |
Get X value.
|
noexcept |
Get Y value.
|
noexcept |
Set X value to x.
|
noexcept |
Set Y value to y.
|
noexcept |
Set X and Y values to x and y respectively.
Set X and Y values according to pos.
|
noexcept |
Move this point by x and y values.
Move this point by pos.
|
noexcept |
Return true if point is (0, 0).
|
noexcept |
Return true if point is not (0, 0).