class: etk::template<T> Vector2D


Description:



Synopsis:

+ T                   m_floats;
+ Vector2D ();
+ Vector2D (T _x,
T _y);
+ Vector2D (const Vector2D<double> & _obj);
+ Vector2D (const Vector2D<float> & _obj);
+ Vector2D (const Vector2D<int32_t> & _obj);
+ Vector2D (const std::string & _str);
+ Vector2D (const std::u32string & _str);
+ ~Vector2D ();
+ const Vector2D<T> & operator = (const Vector2D<T> & _obj);
+ const Vector2D<T> & operator = (const T _val);
+ bool operator == (const Vector2D<T> & _obj) const;
+ bool operator != (const Vector2D<T> & _obj) const;
+ const Vector2D<T> & operator += (const Vector2D<T> & _obj);
+ const Vector2D<T> & operator += (const T _val);
+ Vector2D<T> operator + (const Vector2D<T> & _obj) const;
+ Vector2D<T> operator + (const T _val) const;
+ const Vector2D<T> & operator -= (const Vector2D<T> & _obj);
+ const Vector2D<T> & operator -= (const T _val);
+ Vector2D<T> operator - (const Vector2D<T> & _obj) const;
+ Vector2D<T> operator - (const T _val) const;
+ const Vector2D<T> & operator *= (const Vector2D<T> & _obj);
+ const Vector2D<T> & operator *= (const T _val);
+ Vector2D<T> operator * (const Vector2D<T> & _obj) const;
+ Vector2D<T> operator * (const T _val) const;
+ Vector2D<T> operator (const Vector2D<T> & _obj) const;
+ Vector2D<T> operator (const T _val) const;
+ const Vector2D<T> & operator = (const Vector2D<T> & _obj);
+ const Vector2D<T> & operator = (const T _val);
+ Vector2D<T> & operator ++ ();
+ Vector2D<T> operator ++ (int _unused);
+ Vector2D<T> & operator -- ();
+ Vector2D<T> operator -- (int _unused);
+ btScalar dot (const Vector2D<T> & _v) const;
+ btScalar length2 () const;
+ btScalar length () const;
+ btScalar distance2 (const btVector3 & _v) const;
+ btScalar distance (const btVector3 & v) const;
+ Vector2D<T> & normalize ();
+ Vector2D<T> normalized () const;
+ Vector2D<T> absolute () const;
+ int32_t minAxis () const;
+ int32_t maxAxis () const;
+ int32_t furthestAxis () const;
+ int32_t closestAxis () const;
+ const T & getX () const;
+ const T & getY () const;
+ void setX (T _x);
+ void setY (T _y);
+ const T & x () const;
+ const T & y () const;
+ operator T * ();
+ operator const T * () const;
+ void setMax (const Vector2D<T> & _other);
+ void setMin (const Vector2D<T> & _other);
+ void setValue (const T & _x,
const T & _y);
+ void setZero ();
+ bool isZero () const;
+ operator std::string () const;
+ operator std::u32string () const;

Detail:

m_floats

+ T m_floats;



Vector2D

+  Vector2D ();



Vector2D

+  Vector2D (T _x,
T _y);



Vector2D

+  Vector2D (const Vector2D<double> & _obj);



Vector2D

+  Vector2D (const Vector2D<float> & _obj);



Vector2D

+  Vector2D (const Vector2D<int32_t> & _obj);



Vector2D

+  Vector2D (const std::string & _str);



Vector2D

+  Vector2D (const std::u32string & _str);



~Vector2D

+  ~Vector2D ();



operator =

+ const Vector2D<T> & operator = (const Vector2D<T> & _obj);



operator =

+ const Vector2D<T> & operator = (const T _val);



operator ==

+ bool operator == (const Vector2D<T> & _obj) const;



operator !=

+ bool operator != (const Vector2D<T> & _obj) const;



operator +=

+ const Vector2D<T> & operator += (const Vector2D<T> & _obj);



operator +=

+ const Vector2D<T> & operator += (const T _val);



operator +

+ Vector2D<T> operator + (const Vector2D<T> & _obj) const;



operator +

+ Vector2D<T> operator + (const T _val) const;



operator -=

+ const Vector2D<T> & operator -= (const Vector2D<T> & _obj);



operator -=

+ const Vector2D<T> & operator -= (const T _val);



operator -

+ Vector2D<T> operator - (const Vector2D<T> & _obj) const;



operator -

+ Vector2D<T> operator - (const T _val) const;



operator *=

+ const Vector2D<T> & operator *= (const Vector2D<T> & _obj);



operator *=

+ const Vector2D<T> & operator *= (const T _val);



operator *

+ Vector2D<T> operator * (const Vector2D<T> & _obj) const;



operator *

+ Vector2D<T> operator * (const T _val) const;



operator

+ Vector2D<T> operator (const Vector2D<T> & _obj) const;



operator

+ Vector2D<T> operator (const T _val) const;



operator =

+ const Vector2D<T> & operator = (const Vector2D<T> & _obj);



operator =

+ const Vector2D<T> & operator = (const T _val);



operator ++

+ Vector2D<T> & operator ++ ();



operator ++

+ Vector2D<T> operator ++ (int _unused);



operator --

+ Vector2D<T> & operator -- ();



operator --

+ Vector2D<T> operator -- (int _unused);



dot

+ btScalar dot (const Vector2D<T> & _v) const;
Return the dot product


length2

+ btScalar length2 () const;
Return the length of the vector squared


length

+ btScalar length () const;
Return the length of the vector


distance2

+ btScalar distance2 (const btVector3 & _v) const;
Return the distance squared between the ends of this and another vector This is symantically treating the vector like a point


distance

+ btScalar distance (const btVector3 & v) const;
Return the distance between the ends of this and another vector This is symantically treating the vector like a point


normalize

+ Vector2D<T> & normalize ();
Normalize this vector x^2 + y^2 + z^2 = 1


normalized

+ Vector2D<T> normalized () const;
Return a normalized version of this vector


absolute

+ Vector2D<T> absolute () const;
Return a vector will the absolute values of each element


minAxis

+ int32_t minAxis () const;
Return the axis with the smallest value Note return values are 0,1,2 for x, y, or z


maxAxis

+ int32_t maxAxis () const;
Return the axis with the largest value Note return values are 0,1,2 for x, y, or z


furthestAxis

+ int32_t furthestAxis () const;



closestAxis

+ int32_t closestAxis () const;



getX

+ const T & getX () const;
Return the x value


getY

+ const T & getY () const;
Return the y value


setX

+ void setX (T _x);
Set the x value


setY

+ void setY (T _y);
Set the y value


x

+ const T & x () const;
Return the x value


y

+ const T & y () const;
Return the y value


operator T *

+  operator T * ();



operator const T *

+  operator const T * () const;



setMax

+ void setMax (const Vector2D<T> & _other);
Set each element to the max of the current values and the values of another btVector3


setMin

+ void setMin (const Vector2D<T> & _other);
Set each element to the min of the current values and the values of another btVector3


setValue

+ void setValue (const T & _x,
const T & _y);



setZero

+ void setZero ();



isZero

+ bool isZero () const;



operator std::string

+  operator std::string () const;



operator std::u32string

+  operator std::u32string () const;