3 #include "common/common.hpp"
4 #include "util/placement.hpp"
8 template <
typename T> std::pair<Coord<T>, Coord<T>> pad_bbox(
std::pair<Coord<T>, Coord<T>> bb, T pad)
17 Coordd project_onto_perp_bisector(
const Coordd &a,
const Coordd &b,
const Coordd &p);
19 std::string coord_to_string(
const Coordf &c,
bool delta =
false);
20 std::string dim_to_string(int64_t x,
bool with_sign =
true);
21 std::string angle_to_string(
int angle,
bool pos_only =
true);
22 int orientation_to_angle(Orientation o);
23 int64_t round_multiple(int64_t x, int64_t mul);
25 template <
typename T>
int sgn(T val)
27 return (T(0) < val) - (val < T(0));
30 double angle_to_rad(
int angle);
31 int angle_from_rad(
double rad);
32 int wrap_angle(
int angle);
33 template <
typename T> T c2pi(T x);
35 Placement transform_package_placement_to_new_reference(Placement pl, Placement old_ref, Placement new_ref);
36 Placement transform_text_placement_to_new_reference(Placement pl, Placement old_ref, Placement new_ref);
list< F, S > pair
A list with exactly two elements.
Definition: meta.hpp:2246