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

#include <vector.hpp>

Inheritance diagram for wren::math::Vec2f:
Collaboration diagram for wren::math::Vec2f:

Public Member Functions

 Vec2f ()
 
 Vec2f (float x, float y)
 
 Vec2f (const Vec< float, 2 > &other)
 
auto x () const
 
auto y () const
 
- Public Member Functions inherited from wren::math::Vec< float, 2 >
 Vec ()
 
 Vec (std::array< float, N > data)
 
 Vec (float scalar)
 
auto at (std::size_t i) -> float &
 
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< float, 2 >
using vec_t
 
- Static Public Member Functions inherited from wren::math::Vec< float, 2 >
static auto UnitX ()
 
static auto UnitY ()
 
static auto UnitZ ()
 
- Public Attributes inherited from wren::math::Vec< float, 2 >
std::array< float, N > data
 

Constructor & Destructor Documentation

◆ Vec2f() [1/3]

wren::math::Vec2f::Vec2f ( )
inline

◆ Vec2f() [2/3]

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

◆ Vec2f() [3/3]

wren::math::Vec2f::Vec2f ( const Vec< float, 2 > & other)
inline

Member Function Documentation

◆ x()

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

◆ y()

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

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