#include <geometry.hpp>
|
| constexpr | Point () noexcept |
| | Default constructor initializes to origin (0, 0).
|
| |
| constexpr | Point (std::size_t x_coord, std::size_t y_coord) noexcept |
| | Construct a point at the specified coordinates.
|
| |
| constexpr auto | translate (const Point &offset) const noexcept -> Point |
| | Translate this point by an offset.
|
| |
| constexpr auto | operator== (const Point &other) const noexcept -> bool |
| | Equality comparison.
|
| |
| constexpr auto | operator!= (const Point &other) const noexcept -> bool |
| | Inequality comparison.
|
| |
|
| std::size_t | x |
| | X coordinate (horizontal position)
|
| |
| std::size_t | y |
| | Y coordinate (vertical position)
|
| |
◆ Point() [1/2]
| constexpr epaper::Point::Point |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ Point() [2/2]
| constexpr epaper::Point::Point |
( |
std::size_t |
x_coord, |
|
|
std::size_t |
y_coord |
|
) |
| |
|
inlineconstexprnoexcept |
Construct a point at the specified coordinates.
- Parameters
-
| x_coord | X coordinate |
| y_coord | Y coordinate |
◆ operator!=()
| constexpr auto epaper::Point::operator!= |
( |
const Point & |
other | ) |
const -> bool |
|
inlineconstexprnoexcept |
◆ operator==()
| constexpr auto epaper::Point::operator== |
( |
const Point & |
other | ) |
const -> bool |
|
inlineconstexprnoexcept |
◆ translate()
| constexpr auto epaper::Point::translate |
( |
const Point & |
offset | ) |
const -> Point |
|
inlineconstexprnoexcept |
| std::size_t epaper::Point::x |
| std::size_t epaper::Point::y |
The documentation for this struct was generated from the following file: