16 static float min(
int count,
const float*);
17 static float max(
int count,
const float*);
49 static double round(
float& x1,
float& x2,
int direction,
int digits);
53 static double anint(
double);
56 static bool lt(
double x,
double y,
double e) {
59 static bool le(
double x,
double y,
double e) {
63 static bool eq(T x, T y, T e) {
64 return x - y < e && y - x < e;
66 static bool eq2(
double x,
double y,
double e) {
67 return x - y <= e && y - x <= e;
92 return (x >= x1 && x <= x2);
void set_xy(Canvas *, Coord left, Coord bottom, Coord right, Coord top)
static bool near_line(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2, float epsilon)
static void round_range_down(Coord x1, Coord x2, double &y1, double &y2, int &ntic)
static bool near_line_segment(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2, float epsilon)
static float distance_to_line_segment(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2)
static bool le(double x, double y, double e)
static double anint(double)
static void minmax(Coord &min, Coord &max)
static bool eq2(double x, double y, double e)
static bool unit_normal(Coord x, Coord y, Coord *perp)
static bool eq(T x, T y, T e)
static bool lt(double x, double y, double e)
static void round_range(Coord x1, Coord x2, double &y1, double &y2, int &ntic)
static double resolution(double)
static float max(int count, const float *)
static void extend(Extension &, Coord)
static bool inside(Coord x, Coord min, Coord max)
static void box(Requisition &, Coord &x1, Coord &y1, Coord &x2, Coord &y2)
static float min(int count, const float *)
static double round(float &x1, float &x2, int direction, int digits)
static float norm2(Coord x, Coord y)
static float distance_to_line(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2)