wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::math::vec2i Struct Reference

#include <vector.hpp>

Inheritance diagram for wren::math::vec2i:
Collaboration diagram for wren::math::vec2i:

Public Member Functions

 vec2i ()
 
 vec2i (int x, int y)
 
 vec2i (const Vec< int, 2 > &other)
 
auto x () const
 
auto y () const
 
- Public Member Functions inherited from wren::math::Vec< int, 2 >
 Vec ()
 
 Vec (std::array< int, N > data)
 
auto at (std::size_t i) -> int &
 
auto at (std::size_t i) const
 
constexpr auto operator*= (float scalar) const
 
constexpr auto operator*= (const vec_t &other)
 
constexpr auto operator* (float scalar) const
 
constexpr auto operator* (const vec_t &other) const
 
constexpr auto dot (const vec_t &other) const
 
constexpr auto operator+= (const vec_t &other)
 
constexpr auto operator+ (const vec_t &other) const
 
constexpr auto operator- (const vec_t &other) const
 
constexpr auto operator- () const
 
auto operator/ (float scalar) const
 
constexpr auto operator== (const vec_t &other) const
 
constexpr auto operator!= (const vec_t &other) const
 
constexpr auto length () const
 
auto normalized () const
 

Additional Inherited Members

- Public Types inherited from wren::math::Vec< int, 2 >
using vec_t
 
- Static Public Member Functions inherited from wren::math::Vec< int, 2 >
static auto UnitX ()
 
static auto UnitY ()
 
static auto UnitZ ()
 
- Public Attributes inherited from wren::math::Vec< int, 2 >
std::array< int, N > data
 

Constructor & Destructor Documentation

◆ vec2i() [1/3]

wren::math::vec2i::vec2i ( )
inline

◆ vec2i() [2/3]

wren::math::vec2i::vec2i ( int x,
int y )
inline
Here is the call graph for this function:

◆ vec2i() [3/3]

wren::math::vec2i::vec2i ( const Vec< int, 2 > & other)
inline

Member Function Documentation

◆ x()

auto wren::math::vec2i::x ( ) const
inline
Here is the caller graph for this function:

◆ y()

auto wren::math::vec2i::y ( ) const
inline
Here is the caller graph for this function:

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