|
Terminal++ 4.0.1.23
A C++ library for interacting with ANSI terminal windows
|
A class that represents a position in space. More...
#include <point.hpp>
Public Member Functions | |
| constexpr | point () |
| Default Constructor. | |
| constexpr | point (coordinate_type x, coordinate_type y) noexcept |
| Constructor. | |
| constexpr point & | operator+= (point const &rhs) noexcept |
| Addition. | |
| constexpr point & | operator-= (point const &rhs) noexcept |
| Subtraction. | |
Public Attributes | |
| coordinate_type | y_ |
| coordinate_type | x_ |
Friends | |
| constexpr friend auto | operator+ (point lhs, point const &rhs) noexcept |
| Addition. | |
| constexpr friend auto | operator- (point lhs, point const &rhs) noexcept |
| Subtraction. | |
| constexpr friend auto | operator<=> (point const &lhs, point const &rhs) noexcept=default |
| Relational operators for points. | |
A class that represents a position in space.
|
inlineconstexpr |
Default Constructor.
|
inlineconstexprnoexcept |
Constructor.