BWAPI
Classes | Typedefs | Functions
SPAR/AIModule/SparAIModule/Utils/Vector2.h File Reference
#include <boost/type_traits.hpp>
Include dependency graph for Vector2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vector2< T >
 Generic 2-dimensional vector that may be used for mathematical operations on vectors. More...

Typedefs

typedef Vector2< int > Vector2i
typedef Vector2< float > Vector2f
typedef Vector2< double > Vector2d

Functions

template<class T , class U >
Vector2< T > operator* (const U &val, const Vector2< T > &vec)
 Multiplication of a scalar and a vector operator.

Typedef Documentation

typedef Vector2<double> Vector2d
typedef Vector2<float> Vector2f
typedef Vector2<int> Vector2i

Function Documentation

template<class T , class U >
Vector2<T> operator* ( const U &  val,
const Vector2< T > &  vec 
)

Multiplication of a scalar and a vector operator.

Template Parameters:
Ttype of values in the vector.
Uscalar type of the multiplication factor.
Parameters:
valscalar value to multiply the vector with.
vecvector to multiply the scalar value with.
Returns:
a new vector containing the result of the product.

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines