|
TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
#include <basetypes.h>
Public Member Functions | |
| constexpr | Vec2T () |
| constexpr | Vec2T (T x, T y) |
| template<typename U > | |
| Vec2T (U const &other) | |
| template<typename U > | |
| Vec2T (U *other) | |
| template<typename U , typename V > | |
| Vec2T (std::pair< U, V > const &other) | |
| Vec2T & | operator= (Vec2T const &other) |
| bool | operator== (Vec2T const &other) const |
| bool | operator!= (Vec2T const &other) const |
| bool | operator< (Vec2T< T > const &other) const |
| Vec2T | operator+ (T scalar) const |
| Vec2T | operator- (T scalar) const |
| Vec2T | operator* (T scalar) const |
| Vec2T | operator/ (T scalar) const |
| Vec2T | operator+ (Vec2T const &other) const |
| Vec2T | operator- (Vec2T const &other) const |
| Vec2T & | operator+= (T scalar) |
| Vec2T & | operator-= (T scalar) |
| Vec2T & | operator*= (T scalar) |
| Vec2T & | operator/= (T scalar) |
| Vec2T & | operator+= (Vec2T const &other) |
| Vec2T & | operator-= (Vec2T const &other) |
| double | distanceTo (Vec2T const &other) const |
| template<typename U > | |
| double | distanceTo (U *other) const |
| double | length () const |
| Vec2T & | normalize () |
| Vec2T & | rotateDegrees (double degrees) |
| Vec2T | project (Vec2T towards, T distance) |
| T | dot (Vec2T const &other) |
| template<class Archive > | |
| void | serialize (Archive &ar) |
Static Public Member Functions | |
| static double | cos (Vec2T const &a, Vec2T const &b) |
| static T | dot (Vec2T const &a, Vec2T const &b) |
| static T | cross (Vec2T const &a, Vec2T const &b) |
Public Attributes | |
| T | x |
| T | y |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| T cherrypi::Vec2T< T >::x |
| T cherrypi::Vec2T< T >::y |
1.8.11