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

Concept satisfied when T is a component type allowed as toy::math::Vector2 template parameter. More...

Concept definition

template<typename T>
concept Vector2Component = floating_point<T> || fixed_point<T>
Concept satisfied when T is a component type allowed as toy::math::Vector2 template parameter.
Definition vector2.hpp:49
Concept satisfied when T is an instantiation of toy::math::fixed.
Definition fixed.hpp:419

Detailed Description

Concept satisfied when T is a component type allowed as toy::math::Vector2 template parameter.

Use to constrain the component type of toy::math::Vector2 to floating-point or fixed-point types only.

Requirements

A type T satisfies Vector2Component if and only if at least one of the following holds:

See also
toy::math::Vector2