BWAPI
Public Member Functions | Public Attributes
double2 Struct Reference

#include <Common.h>

List of all members.

Public Member Functions

 double2 ()
 double2 (double x, double y)
 double2 (const BWAPI::Position &p)
 operator BWAPI::Position () const
double2 operator+ (const double2 &v) const
double2 operator- (const double2 &v) const
double2 operator* (double s) const
double2 operator/ (double s) const
double dot (const double2 &v) const
double lenSq () const
double len () const
double2 normal () const
void normalise ()
void rotate (double angle)

Public Attributes

double x
double y

Constructor & Destructor Documentation

double2::double2 ( ) [inline]

Here is the caller graph for this function:

double2::double2 ( double  x,
double  y 
) [inline]
double2::double2 ( const BWAPI::Position p) [inline]

Member Function Documentation

double double2::dot ( const double2 v) const [inline]
double double2::len ( ) const [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

double double2::lenSq ( ) const [inline]

Here is the caller graph for this function:

double2 double2::normal ( ) const [inline]

Here is the call graph for this function:

void double2::normalise ( ) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

double2::operator BWAPI::Position ( ) const [inline]
double2 double2::operator* ( double  s) const [inline]

Here is the call graph for this function:

double2 double2::operator+ ( const double2 v) const [inline]

Here is the call graph for this function:

double2 double2::operator- ( const double2 v) const [inline]

Here is the call graph for this function:

double2 double2::operator/ ( double  s) const [inline]

Here is the call graph for this function:

void double2::rotate ( double  angle) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

double double2::x
double double2::y

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