JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
vec_traits< jngl::Vec2 > Struct Reference

Public Types

using scalar_type = double
 

Static Public Member Functions

template<int I>
static scalar_type & write_element (jngl::Vec2 &v)
 
template<int I>
static scalar_type read_element (const jngl::Vec2 &v)
 
static scalar_type & write_element_idx (int i, jngl::Vec2 &v)
 
static scalar_type read_element_idx (int i, jngl::Vec2 const &v)
 

Static Public Attributes

static int const dim = 2
 

Detailed Description

Definition at line 79 of file Vec2.hpp.

Member Typedef Documentation

◆ scalar_type

using scalar_type = double

Definition at line 81 of file Vec2.hpp.

Member Function Documentation

◆ write_element()

template<int I>
static scalar_type & write_element ( jngl::Vec2 & v)
inlinestatic

Definition at line 83 of file Vec2.hpp.

◆ read_element()

template<int I>
static scalar_type read_element ( const jngl::Vec2 & v)
inlinestatic

Definition at line 86 of file Vec2.hpp.

◆ write_element_idx()

static scalar_type & write_element_idx ( int i,
jngl::Vec2 & v )
inlinestatic

Definition at line 90 of file Vec2.hpp.

◆ read_element_idx()

static scalar_type read_element_idx ( int i,
jngl::Vec2 const & v )
inlinestatic

Definition at line 93 of file Vec2.hpp.

Member Data Documentation

◆ dim

int const dim = 2
static

Definition at line 80 of file Vec2.hpp.


The documentation for this struct was generated from the following file: