_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes
vec2i.h File Reference

Go to the source code of this file.

Classes

class  Vec2T< T >
 

vec2i.h - Vec2i headerfile.

typedef Vec2T< short int > Vec2i
 
typedef Vec2T< int > PixelPos
 
typedef Vec2T< int > PixelDiff
 
typedef Vec2T< int > PixelSize
 
typedef Vec2T< double > PixelPrecise
 
template<typename T >
bool operator== (const Vec2T< T > &lhs, const Vec2T< T > &rhs)
 
template<typename T >
bool operator!= (const Vec2T< T > &lhs, const Vec2T< T > &rhs)
 
template<typename T >
const Vec2T< T > & operator+= (Vec2T< T > &lhs, const Vec2T< T > &rhs)
 
template<typename T >
const Vec2T< T > & operator-= (Vec2T< T > &lhs, const Vec2T< T > &rhs)
 
template<typename T >
const Vec2T< T > & operator*= (Vec2T< T > &lhs, int rhs)
 
template<typename T >
const Vec2T< T > & operator/= (Vec2T< T > &lhs, int rhs)
 
template<typename T >
Vec2T< T > operator+ (const Vec2T< T > &lhs, const Vec2T< T > &rhs)
 
template<typename T >
Vec2T< T > operator- (const Vec2T< T > &lhs, const Vec2T< T > &rhs)
 
template<typename T >
Vec2T< T > operator* (const Vec2T< T > &lhs, int rhs)
 
template<typename T >
Vec2T< T > operator* (int lhs, const Vec2T< T > &rhs)
 
template<typename T >
Vec2T< T > operator/ (const Vec2T< T > &lhs, int rhs)
 
template<typename T >
int SquareDistance (const Vec2T< T > &pos1, const Vec2T< T > &pos2)
 
template<typename T >
int Distance (const Vec2T< T > &pos1, const Vec2T< T > &pos2)
 

Typedef Documentation

typedef Vec2T<int> PixelDiff
typedef Vec2T<int> PixelPos
typedef Vec2T<double> PixelPrecise
typedef Vec2T<int> PixelSize
typedef Vec2T<short int> Vec2i

Function Documentation

template<typename T >
int Distance ( const Vec2T< T > &  pos1,
const Vec2T< T > &  pos2 
)
inline
template<typename T >
bool operator!= ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline
template<typename T >
Vec2T<T> operator* ( const Vec2T< T > &  lhs,
int  rhs 
)
inline
template<typename T >
Vec2T<T> operator* ( int  lhs,
const Vec2T< T > &  rhs 
)
inline
template<typename T >
const Vec2T<T>& operator*= ( Vec2T< T > &  lhs,
int  rhs 
)
inline
template<typename T >
Vec2T<T> operator+ ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline
template<typename T >
const Vec2T<T>& operator+= ( Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline
template<typename T >
Vec2T<T> operator- ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline
template<typename T >
const Vec2T<T>& operator-= ( Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline
template<typename T >
Vec2T<T> operator/ ( const Vec2T< T > &  lhs,
int  rhs 
)
inline
template<typename T >
const Vec2T<T>& operator/= ( Vec2T< T > &  lhs,
int  rhs 
)
inline
template<typename T >
bool operator== ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline
template<typename T >
int SquareDistance ( const Vec2T< T > &  pos1,
const Vec2T< T > &  pos2 
)
inline
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.