wren
Vulkan-based game engine
|
#include <vector.hpp>
Public Member Functions | |
Vec2f () | |
Vec2f (float x, float y) | |
Vec2f (const Vec< float, 2 > &other) | |
auto | x () const |
auto | x (float x) |
auto | y () const |
auto | y (float y) |
![]() | |
Vec () | |
Vec (std::array< float, N > data) | |
Vec (float scalar) | |
Vec (Args... args) | |
auto | xyz () const |
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) |
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 | |
![]() | |
using | vec_t |
![]() | |
static auto | unit_x () |
static auto | unit_y () |
static auto | unit_z () |
![]() | |
std::array< float, N > | data |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
inline |
|
inlinenodiscard |
|
inline |