aether::geometry::vec2f Struct Reference

#include <vector.hh>

Public Types

using self_type = vec2f
 
using value_type = float
 

Public Member Functions

vec2foperator*= (const float s)
 
vec2foperator/= (const float s)
 
vec2foperator+= (const vec2f &other)
 
vec2foperator-= (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_typeoperator[] (const size_t index)
 
const value_typeoperator[] (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
 

Member Typedef Documentation

Constructor & Destructor Documentation

aether::geometry::vec2f::vec2f ( )
default
aether::geometry::vec2f::vec2f ( const vec2f )
default
aether::geometry::vec2f::vec2f ( value_type  x_,
value_type  y_ 
)
inline

Member Function Documentation

static vec2f aether::geometry::vec2f::components ( float  _x,
float  _y 
)
inlinestatic
value_type aether::geometry::vec2f::dot ( const vec2f other) const
inline
value_type aether::geometry::vec2f::norm2 ( ) const
inline
void aether::geometry::vec2f::normalize ( )
inline
self_type aether::geometry::vec2f::normalized ( ) const
inline
bool aether::geometry::vec2f::operator!= ( const self_type other) const
inline
self_type aether::geometry::vec2f::operator* ( const value_type  s) const
inline
vec2f& aether::geometry::vec2f::operator*= ( const float  s)
inline
self_type aether::geometry::vec2f::operator+ ( const self_type other) const
inline
vec2f& aether::geometry::vec2f::operator+= ( const vec2f other)
inline
self_type aether::geometry::vec2f::operator- ( const self_type other) const
inline
self_type aether::geometry::vec2f::operator- ( ) const
inline
vec2f& aether::geometry::vec2f::operator-= ( const vec2f other)
inline
self_type aether::geometry::vec2f::operator/ ( const value_type  s) const
inline
vec2f& aether::geometry::vec2f::operator/= ( const float  s)
inline
bool aether::geometry::vec2f::operator== ( const self_type other) const
inline
value_type& aether::geometry::vec2f::operator[] ( const size_t  index)
inline
const value_type& aether::geometry::vec2f::operator[] ( const size_t  index) const
inline
value_type aether::geometry::vec2f::sqr_magnitude ( ) const
inline
static vec2f aether::geometry::vec2f::zero ( )
inlinestatic

Member Data Documentation

value_type aether::geometry::vec2f::x
value_type aether::geometry::vec2f::y