_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
50 return lhs.
x == rhs.
x && lhs.
y == rhs.
y;
62 return lhs.
x < rhs.
x && lhs.
y < rhs.
y;
68 return lhs.
x > rhs.
x && lhs.
y > rhs.
y;
103 template <
typename T>
112 template <
typename T>
121 template <
typename T>
130 template <
typename T>
139 template <
typename T>
148 template <
typename T>
153 return diff.
x * diff.
x + diff.
y * diff.
y;
156 template <
typename T>
Vec2T()
Definition: vec2i.h:39
const Vec2T< T > & operator*=(Vec2T< T > &lhs, int rhs)
Definition: vec2i.h:88
Vec2T< T > operator*(const Vec2T< T > &lhs, int rhs)
Definition: vec2i.h:122
bool operator<(const Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:60
T y
Definition: vec2i.h:43
const Vec2T< T > & operator+=(Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:72
Vec2T< int > PixelDiff
Definition: vec2i.h:164
Vec2T< int > PixelPos
Definition: vec2i.h:163
bool operator>(const Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:66
Vec2T< T > operator/(const Vec2T< T > &lhs, int rhs)
Definition: vec2i.h:140
int Distance(const Vec2T< T > &pos1, const Vec2T< T > &pos2)
Definition: vec2i.h:157
Vec2T< T > operator-(const Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:113
Vec2T(T x, T y)
Definition: vec2i.h:40
const Vec2T< T > & operator-=(Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:80
bool operator!=(const Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:54
Vec2T< T > operator+(const Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:104
long isqrt(long num)
Compute a square root using ints.
Definition: util.cpp:133
T x
Definition: vec2i.h:42
Vec2T< short int > Vec2i
Definition: vec2i.h:162
Vec2T< double > PixelPrecise
Definition: vec2i.h:166
int SquareDistance(const Vec2T< T > &pos1, const Vec2T< T > &pos2)
Definition: vec2i.h:149
Vec2T< int > PixelSize
Definition: vec2i.h:165
const Vec2T< T > & operator/=(Vec2T< T > &lhs, int rhs)
Definition: vec2i.h:96
bool operator==(const Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:48
(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.