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

#include <vector.hpp>

Inheritance diagram for wren::math::Vec4f:
Collaboration diagram for wren::math::Vec4f:

Public Member Functions

 Vec4f ()
 
 Vec4f (const auto &other)
 
 Vec4f (float x, float y, float z, float w)
 
 Vec4f (const Vec3f &vec, float w)
 
 Vec4f (const Vec< float, 4 > &other)
 
auto x () const
 
auto y () const
 
auto z () const
 
auto w () const
 
- Public Member Functions inherited from wren::math::Vec< float, 4 >
 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, 4 >
using vec_t
 
- Static Public Member Functions inherited from wren::math::Vec< float, 4 >
static auto UnitX ()
 
static auto UnitY ()
 
static auto UnitZ ()
 
- Public Attributes inherited from wren::math::Vec< float, 4 >
std::array< float, N > data
 

Constructor & Destructor Documentation

◆ Vec4f() [1/5]

wren::math::Vec4f::Vec4f ( )
inline

◆ Vec4f() [2/5]

wren::math::Vec4f::Vec4f ( const auto & other)
inline

◆ Vec4f() [3/5]

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

◆ Vec4f() [4/5]

wren::math::Vec4f::Vec4f ( const Vec3f & vec,
float w )
inline
Here is the call graph for this function:

◆ Vec4f() [5/5]

wren::math::Vec4f::Vec4f ( const Vec< float, 4 > & other)
inline

Member Function Documentation

◆ w()

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

◆ x()

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

◆ y()

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

◆ z()

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

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