nngn
Loading...
Searching...
No Matches
vec2.h File Reference
#include <cstdint>
#include "vec.h"
Include dependency graph for vec2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nngn::vec2_base< T >
 
struct  nngn::vec_type< T, 2 >
 

Namespaces

namespace  nngn
 

Macros

#define S(v0, v1)    constexpr vec2_base<T> v0 ## v1() const { return {this->v0, this->v1}; }
 

Typedefs

using nngn::ivec2 = vec2_base< std::int32_t >
 
using nngn::uvec2 = vec2_base< std::uint32_t >
 
using nngn::zvec2 = vec2_base< std::size_t >
 
using nngn::vec2 = vec2_base< float >
 
using nngn::dvec2 = vec2_base< double >
 

Macro Definition Documentation

◆ S

#define S (   v0,
  v1 
)     constexpr vec2_base<T> v0 ## v1() const { return {this->v0, this->v1}; }