3#include "common/common.hpp"
4#include "util/placement.hpp"
17Coordd project_onto_perp_bisector(
const Coordd &a,
const Coordd &b,
const Coordd &p);
19std::string coord_to_string(
const Coordf &c,
bool delta =
false);
20std::string dim_to_string(int64_t x,
bool with_sign =
true);
21std::string angle_to_string(
int angle,
bool pos_only =
true);
22int orientation_to_angle(Orientation o);
23int64_t round_multiple(int64_t x, int64_t mul);
25template <
typename T>
int sgn(T val)
27 return (T(0) < val) - (val < T(0));
30double angle_to_rad(
int angle);
31int angle_from_rad(
double rad);
32int wrap_angle(
int angle);
33template <
typename T> T c2pi(T x);
Your typical coordinate class.
Definition common.hpp:88
Definition placement.hpp:8