13 lines
431 B
C++
13 lines
431 B
C++
#ifndef DRAWING_PRIMITIVE_PRIVATE
|
|
#define DRAWING_PRIMITIVE_PRIVATE
|
|
|
|
#include <basic_widgets/drawing_primitive.hpp>
|
|
|
|
SDL_Color aa(const SDL_Color&&, const int, const float);
|
|
inline float distance_sqrd(const SDL_Point& a, const SDL_Point& b)
|
|
{ return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y); }
|
|
inline float distance(const SDL_Point& a, const SDL_Point& b)
|
|
{ return std::sqrt(distance_sqrd(a, b)); }
|
|
|
|
#endif
|