#include <vector.hh>
Public Types | |
using | self_type = vec2f |
using | value_type = float |
Public Member Functions | |
vec2f & | operator*= (const float s) |
vec2f & | operator/= (const float s) |
vec2f & | operator+= (const vec2f &other) |
vec2f & | operator-= (const vec2f &other) |
bool | operator== (const self_type &other) const |
bool | operator!= (const self_type &other) const |
self_type | operator* (const value_type s) const |
self_type | operator/ (const value_type s) const |
self_type | operator+ (const self_type &other) const |
self_type | operator- (const self_type &other) const |
self_type | operator- () const |
value_type | dot (const vec2f &other) const |
value_type | sqr_magnitude () const |
value_type | norm2 () const |
void | normalize () |
self_type | normalized () const |
value_type & | operator[] (const size_t index) |
const value_type & | operator[] (const size_t index) const |
vec2f ()=default | |
vec2f (const vec2f &)=default | |
vec2f (value_type x_, value_type y_) | |
Static Public Member Functions | |
static vec2f | zero () |
static vec2f | components (float _x, float _y) |
Public Attributes | |
value_type | x |
value_type | y |
using aether::geometry::vec2f::value_type = float |
|
default |
|
default |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
value_type aether::geometry::vec2f::x |
value_type aether::geometry::vec2f::y |