SC2API
An API for AI for StarCraft II
Public Member Functions | Public Attributes | List of all members
sc2::Point2D Struct Reference

#include <sc2_common.h>

Public Member Functions

 Point2D (Point3D a)
 
 Point2D (float in_x, float in_y)
 
Point2Doperator+= (const Point2D &rhs)
 
Point2Doperator-= (const Point2D &rhs)
 
Point2Doperator*= (float rhs)
 
Point2Doperator/= (float rhs)
 
bool operator== (const Point2D &rhs)
 
bool operator!= (const Point2D &rhs)
 

Public Attributes

float x
 
float y
 

Detailed Description

2D point.

See also
Distance2D(const Point2D& a, const Point2D& b) DistanceSquared2D(const Point2D& a, const Point2D& b) Normalize2D(Point2D& a) Dot2D(const Point2D& a, const Point2D& b)

The documentation for this struct was generated from the following file: