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

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 >
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

◆ PixelDiff

typedef Vec2T<int> PixelDiff

◆ PixelPos

typedef Vec2T<int> PixelPos

◆ PixelPrecise

typedef Vec2T<double> PixelPrecise

◆ PixelSize

typedef Vec2T<int> PixelSize

◆ Vec2i

typedef Vec2T<short int> Vec2i

Function Documentation

◆ Distance()

template<typename T >
int Distance ( const Vec2T< T > &  pos1,
const Vec2T< T > &  pos2 
)
inline

◆ operator!=()

template<typename T >
bool operator!= ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator*() [1/2]

template<typename T >
Vec2T<T> operator* ( const Vec2T< T > &  lhs,
int  rhs 
)
inline

◆ operator*() [2/2]

template<typename T >
Vec2T<T> operator* ( int  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator*=()

template<typename T >
const Vec2T<T>& operator*= ( Vec2T< T > &  lhs,
int  rhs 
)
inline

◆ operator+()

template<typename T >
Vec2T<T> operator+ ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator+=()

template<typename T >
const Vec2T<T>& operator+= ( Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator-()

template<typename T >
Vec2T<T> operator- ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator-=()

template<typename T >
const Vec2T<T>& operator-= ( Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator/()

template<typename T >
Vec2T<T> operator/ ( const Vec2T< T > &  lhs,
int  rhs 
)
inline

◆ operator/=()

template<typename T >
const Vec2T<T>& operator/= ( Vec2T< T > &  lhs,
int  rhs 
)
inline

◆ operator<()

template<typename T >
bool operator< ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator==()

template<typename T >
bool operator== ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ operator>()

template<typename T >
bool operator> ( const Vec2T< T > &  lhs,
const Vec2T< T > &  rhs 
)
inline

◆ SquareDistance()

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.