![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Inline implementations for toy::math::Point. More...
#include "utils.inl"Go to the source code of this file.
Namespaces | |
| namespace | toy |
| Root namespace containing all engine modules. | |
| namespace | toy::math |
| Mathematical types, constants, and utilities: fixed-point, vectors, point. | |
Functions | |
| constexpr Point | toy::math::operator- (const Point &point) noexcept |
| Unary minus: negated coordinates. | |
| constexpr Point | toy::math::operator+ (const Point &left, const Point &right) noexcept |
| Addition of two points. | |
| constexpr Point | toy::math::operator- (const Point &left, const Point &right) noexcept |
| Subtraction of two points. | |
| template<PointScalar T> | |
| constexpr Point | toy::math::operator* (const Point &point, const T &scalar) noexcept |
| Point scaled by scalar and truncated to integer. | |
| template<PointScalar T> | |
| constexpr Point | toy::math::operator* (const T &scalar, const Point &point) noexcept |
| Point scaled by scalar (scalar on the left). | |
| template<PointScalar T> | |
| constexpr Point | toy::math::operator/ (const Point &point, const T &scalar) noexcept |
| Point divided by scalar and truncated to integer. | |
| constexpr bool | toy::math::operator== (const Point &left, const Point &right) noexcept |
| Exact equality of two points. | |
Inline implementations for toy::math::Point.