ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
point.inl File Reference

Inline implementations for toy::math::Point. More...

#include "utils.inl"
Include dependency graph for point.inl:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Inline implementations for toy::math::Point.

Note
Included by math.hpp only; do not include this file directly.