BWAPI
Public Member Functions | Public Attributes | Friends
Vec Struct Reference

#include <Vec.h>

List of all members.

Public Member Functions

 Vec (double x_=0.0, double y_=0.0)
 Vec (const Vec &v)
 Vec (const BWAPI::Position &p)
bool operator< (const Vec &b) const
Vec operator+ (const Vec &b) const
Vec operator+ (const BWAPI::Position &p)
Vec operator+= (const Vec &b)
Vec operator+= (const BWAPI::Position &p)
Vec operator+= (const BWAPI::TilePosition &p)
Vec operator- (const Vec &b) const
Vec operator* (double b) const
Vec operator*= (const double b)
Vec operator/ (double b) const
Vec operator/= (const double s)
bool operator== (const Vec &b)
bool operator!= (const Vec &b)
Vec mult (const Vec &b) const
Vecnormalize ()
double norm () const
double dot (const Vec &b) const
BWAPI::Position toPosition () const
BWAPI::TilePosition toTilePosition () const
Vec operator% (Vec &b)
BWAPI::Position translate (const BWAPI::Position &p) const
BWAPI::Position translate (const Vec &v) const
Vec vecTranslate (const Vec &v) const
std::ostream & operator<< (std::ostream &os) const

Public Attributes

double x
double y

Friends

std::ostream & operator<< (std::ostream &os, const Vec &v)

Constructor & Destructor Documentation

Vec::Vec ( double  x_ = 0.0,
double  y_ = 0.0 
) [inline]

Here is the caller graph for this function:

Vec::Vec ( const Vec v) [inline]
Vec::Vec ( const BWAPI::Position &  p) [inline]

Member Function Documentation

double Vec::dot ( const Vec b) const [inline]

Here is the caller graph for this function:

Vec Vec::mult ( const Vec b) const [inline]

Here is the call graph for this function:

double Vec::norm ( ) const [inline]

Here is the caller graph for this function:

Vec& Vec::normalize ( ) [inline]

Here is the caller graph for this function:

bool Vec::operator!= ( const Vec b) [inline]
Vec Vec::operator% ( Vec b) [inline]

Here is the call graph for this function:

Vec Vec::operator* ( double  b) const [inline]

Here is the call graph for this function:

Vec Vec::operator*= ( const double  b) [inline]
Vec Vec::operator+ ( const Vec b) const [inline]

Here is the call graph for this function:

Vec Vec::operator+ ( const BWAPI::Position &  p) [inline]
Vec Vec::operator+= ( const Vec b) [inline]
Vec Vec::operator+= ( const BWAPI::Position &  p) [inline]
Vec Vec::operator+= ( const BWAPI::TilePosition &  p) [inline]
Vec Vec::operator- ( const Vec b) const [inline]

Here is the call graph for this function:

Vec Vec::operator/ ( double  b) const [inline]

Here is the call graph for this function:

Vec Vec::operator/= ( const double  s) [inline]
bool Vec::operator< ( const Vec b) const [inline]
std::ostream& Vec::operator<< ( std::ostream &  os) const [inline]
bool Vec::operator== ( const Vec b) [inline]
BWAPI::Position Vec::toPosition ( ) const [inline]

Here is the caller graph for this function:

BWAPI::TilePosition Vec::toTilePosition ( ) const [inline]
BWAPI::Position Vec::translate ( const BWAPI::Position &  p) const [inline]

Here is the caller graph for this function:

BWAPI::Position Vec::translate ( const Vec v) const [inline]
Vec Vec::vecTranslate ( const Vec v) const [inline]

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Vec v 
) [friend]

Member Data Documentation

double Vec::x
double Vec::y

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines