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 61 of file Vec2.hpp.

Member Typedef Documentation

◆ scalar_type

using scalar_type = double

Definition at line 63 of file Vec2.hpp.

Member Function Documentation

◆ write_element()

static scalar_type & write_element ( jngl::Vec2 v)
inlinestatic

Definition at line 65 of file Vec2.hpp.

◆ read_element()

static scalar_type read_element ( const jngl::Vec2 v)
inlinestatic

Definition at line 68 of file Vec2.hpp.

◆ write_element_idx()

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

Definition at line 72 of file Vec2.hpp.

◆ read_element_idx()

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

Definition at line 75 of file Vec2.hpp.

Member Data Documentation

◆ dim

int const dim = 2
static

Definition at line 62 of file Vec2.hpp.


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