Integer 2D point (chromaticity / luminance pair).
More...
#include <StormByte/multimedia/property/point.hxx>
|
| | Point (int x, int y) noexcept |
| | Constructs a point.
|
| |
| | Point (const Point &)=default |
| | Copy constructor.
|
| |
| | Point (Point &&) noexcept=default |
| | Move constructor.
|
| |
| | ~Point () noexcept=default |
| | Destructor.
|
| |
| Point & | operator= (const Point &)=default |
| | Copy assignment.
|
| |
| Point & | operator= (Point &&) noexcept=default |
| | Move assignment.
|
| |
| int | X () const noexcept |
| | X coordinate.
|
| |
| int | Y () const noexcept |
| | Y coordinate.
|
| |
|
| static Point | Normalized (int numerator_x, int denominator_x, int numerator_y, int denominator_y, int denominator) noexcept |
| | Builds a point scaled to a common denominator.
|
| |
Integer 2D point (chromaticity / luminance pair).
◆ Point() [1/3]
| StormByte::Multimedia::Property::Point::Point |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
noexcept |
Constructs a point.
- Parameters
-
| x | X coordinate. |
| y | Y coordinate. |
◆ Point() [2/3]
| StormByte::Multimedia::Property::Point::Point |
( |
const Point & |
| ) |
|
|
default |
◆ Point() [3/3]
| StormByte::Multimedia::Property::Point::Point |
( |
Point && |
| ) |
|
|
defaultnoexcept |
◆ ~Point()
| StormByte::Multimedia::Property::Point::~Point |
( |
| ) |
|
|
defaultnoexcept |
◆ Normalized()
| static Point StormByte::Multimedia::Property::Point::Normalized |
( |
int |
numerator_x, |
|
|
int |
denominator_x, |
|
|
int |
numerator_y, |
|
|
int |
denominator_y, |
|
|
int |
denominator |
|
) |
| |
|
staticnoexcept |
Builds a point scaled to a common denominator.
- Parameters
-
| numerator_x | X numerator. |
| denominator_x | X denominator. |
| numerator_y | Y numerator. |
| denominator_y | Y denominator. |
| denominator | Target scale denominator. |
- Returns
- Normalized point.
◆ operator=() [1/2]
| Point & StormByte::Multimedia::Property::Point::operator= |
( |
const Point & |
| ) |
|
|
default |
Copy assignment.
- Returns
- *this.
◆ operator=() [2/2]
| Point & StormByte::Multimedia::Property::Point::operator= |
( |
Point && |
| ) |
|
|
defaultnoexcept |
Move assignment.
- Returns
- *this.
◆ X()
| int StormByte::Multimedia::Property::Point::X |
( |
| ) |
const |
|
noexcept |
◆ Y()
| int StormByte::Multimedia::Property::Point::Y |
( |
| ) |
const |
|
noexcept |
The documentation for this class was generated from the following file:
- lib/public/StormByte/multimedia/property/point.hxx