ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
toy::math::PointScalar Concept Reference

Concept satisfied when T is a signed integral, floating-point, or fixed-point type. More...

Concept definition

template<typename T>
concept PointScalar = signed_integral<T> || floating_point<T> || fixed_point<T>
Concept satisfied when T is a signed integral, floating-point, or fixed-point type.
Definition point.hpp:51
Concept satisfied when T is an instantiation of toy::math::fixed.
Definition fixed.hpp:419

Detailed Description

Concept satisfied when T is a signed integral, floating-point, or fixed-point type.

Used to constrain scalar arguments for toy::math::Point multiplication and division operators. Accepts signed integral types only (e.g. int32_t; unsigned integral is excluded), standard floating-point types ( float, double, long double), and fixed-point types.

Requirements

  • T satisfies toy::math::signed_integral, or
  • T satisfies toy::math::floating_point, or
  • T satisfies toy::math::fixed_point.
See also
toy::math::Point, toy::math::Vector2