25 Point3D(
float in_x,
float in_y,
float in_z) :
36 bool operator==(
const Point3D& rhs);
37 bool operator!=(
const Point3D& rhs);
64 Point2D(
float in_x,
float in_y) :
74 bool operator==(
const Point2D& rhs);
75 bool operator!=(
const Point2D& rhs);
99 Point2DI(
int in_x = 0,
int in_y = 0) :
104 bool operator==(
const Point2DI& rhs)
const;
105 bool operator!=(
const Point2DI& rhs)
const;
126 Color(uint8_t in_r, uint8_t in_g, uint8_t in_b) :
134 static const Color White =
Color(255, 255, 255);
137 static const Color Yellow =
Color(255, 255, 0);
140 static const Color Purple =
Color(255, 0, 255);
142 static const Color Gray =
Color(128, 128, 128);
160 template <
typename Container>
162 typename Container::iterator iter = container.begin();
163 std::advance(iter, GetRandomInteger(0, static_cast<int>(container.size()) - 1));
2D integer point.
Definition: sc2_common.h:95
Definition: sc2_common.h:14
Definition: sc2_common.h:49
float Dot2D(const Point2D &a, const Point2D &b)
Definition: sc2_action.h:9
float GetRandomFraction()
int GetRandomInteger(int min, int max)
float Distance2D(const Point2D &a, const Point2D &b)
void Normalize2D(Point2D &a)
RGB Color.
Definition: sc2_common.h:115
void Normalize3D(Point3D &a)
float Dot3D(const Point3D &a, const Point3D &b)
2D rectangle.
Definition: sc2_common.h:89
float DistanceSquared3D(const Point3D &a, const Point3D &b)
float DistanceSquared2D(const Point2D &a, const Point2D &b)
2D integer rectangle.
Definition: sc2_common.h:109
float Distance3D(const Point3D &a, const Point3D &b)
Container::value_type & GetRandomEntry(Container &container)
Definition: sc2_common.h:161