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

#include <vector.hpp>

Inheritance diagram for wren::math::Vec3f:
Collaboration diagram for wren::math::Vec3f:

Public Member Functions

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

Constructor & Destructor Documentation

◆ Vec3f() [1/4]

wren::math::Vec3f::Vec3f ( )
inline

◆ Vec3f() [2/4]

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

◆ Vec3f() [3/4]

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

◆ Vec3f() [4/4]

wren::math::Vec3f::Vec3f ( const Vec< float, 3 > & other)
inline

Member Function Documentation

◆ operator%()

auto wren::math::Vec3f::operator% ( const Vec3f & other) const
inline
Here is the call graph for this function:

◆ x() [1/2]

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

◆ x() [2/2]

auto wren::math::Vec3f::x ( float x)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ y() [1/2]

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

◆ y() [2/2]

auto wren::math::Vec3f::y ( float y)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ z() [1/2]

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

◆ z() [2/2]

auto wren::math::Vec3f::z ( float z)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

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