Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Vec.hpp File Reference

Smart alias that selects the optimized struct based on N. More...

#include "RType/Math/Vec2.hpp"
#include "RType/Math/Vec3.hpp"
#include "RType/Math/Vec4.hpp"
#include "RType/Math/details/VecN.hpp"
#include <type_traits>
Include dependency graph for Vec.hpp:

Go to the source code of this file.

Namespaces

namespace  rtp
 

Typedefs

template<Numeric T, std::size_t N>
using rtp::Vec = std::conditional_t< N==2, Vec2< T >, std::conditional_t< N==3, Vec3< T >, std::conditional_t< N==4, Vec4< T >, details::VecN< T, N > > > >
 Smart alias that selects the optimized struct based on N.
 

Detailed Description

Smart alias that selects the optimized struct based on N.

Author
Robin Toillon

Definition in file Vec.hpp.