nux-0.9.48
|
#include <NuxCore/Math/Vector2.h>
Public Member Functions | |
Vec2 () | |
~Vec2 () | |
Vec2 (const T &, const T &) | |
Vec2 (const Vec2 &) | |
Vec2< T > & | operator= (const Vec2< T > &) |
Vec2< T > & | operator= (const Vec4< T > &) |
Vec2< T > & | operator= (const Vec3< T > &) |
t_bool | operator== (const Vec2< T > &) const |
t_bool | operator!= (const Vec2< T > &) const |
Vec2< T > | operator+ (const Vec2< T > &) const |
Vec2< T > | operator* (const Vec2< T > &) const |
Vec2< T > | operator- (const Vec2< T > &) const |
Vec2< T > | operator- () const |
Vec2< T > & | operator*= (const Vec2< T > &) |
Vec2< T > & | operator+= (const Vec2< T > &) |
Vec2< T > & | operator-= (const Vec2< T > &) |
Vec2< T > | operator/ (const T &) const |
Vec2< T > | operator* (const T &) const |
T & | operator[] (int i) |
element access | |
const T & | operator[] (int i) const |
element access (const) | |
T | Length () const |
T | DotProduct (const Vec2 &) const |
T | CrossProduct (const Vec2 &) const |
void | Normalize () |
Data Fields | |
T | x |
T | y |
Friends | |
class | Matrix2 |
template<typename U > | |
Vec2< U > | operator* (const U &, const Vec2< U > &) |
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
T nux::Vec2< T >::Length | ( | ) | const [inline] |
void nux::Vec2< T >::Normalize | ( | ) | [inline] |
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec3< T >::x, and nux::Vec3< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
References nux::Vec4< T >::x, and nux::Vec4< T >::y.
References nux::Vec2< T >::x, and nux::Vec2< T >::y.
T & nux::Vec2< T >::operator[] | ( | int | i | ) | [inline] |
element access
const T & nux::Vec2< T >::operator[] | ( | int | i | ) | const [inline] |
element access (const)
friend class Matrix2 [friend] |
Vec2<U> operator* | ( | const U & | f, |
const Vec2< U > & | v | ||
) | [friend] |
Referenced by nux::CrossProduct(), nux::Vec2< T >::CrossProduct(), nux::DotProduct(), nux::Vec2< T >::DotProduct(), nux::Line2D< T >::Line2D(), nux::Vec2< T >::operator*(), nux::Matrix2x2< T >::operator*(), nux::Vec2< T >::operator*=(), nux::Vec2< T >::operator+(), nux::Vec2< T >::operator+=(), nux::Vec2< T >::operator-(), nux::Vec2< T >::operator-=(), nux::Vec2< T >::operator=(), nux::Vec2< T >::operator==(), and nux::Vec2< T >::Vec2().
Referenced by nux::CrossProduct(), nux::Vec2< T >::CrossProduct(), nux::DotProduct(), nux::Vec2< T >::DotProduct(), nux::Line2D< T >::Line2D(), nux::Vec2< T >::operator*(), nux::Matrix2x2< T >::operator*(), nux::Vec2< T >::operator*=(), nux::Vec2< T >::operator+(), nux::Vec2< T >::operator+=(), nux::Vec2< T >::operator-(), nux::Vec2< T >::operator-=(), nux::Vec2< T >::operator=(), nux::Vec2< T >::operator==(), and nux::Vec2< T >::Vec2().