20 static float min(
int count,
const float*);
21 static float max(
int count,
const float*);
71 static double round(
float& x1,
float& x2,
int direction,
int digits);
75 static double anint(
double);
78 static bool lt(
double x,
double y,
double e) {
return x < (y-
e); }
79 static bool le(
double x,
double y,
double e) {
return x <= (y+
e); }
81 static bool eq2(
double x,
double y,
double e) {
return x - y <= e && y - x <=
e; }
94 if (y < x) {
Coord z = x; x = y; y = z;}
98 return (x >= x1 && x <= x2);
static void round_range(Coord x1, Coord x2, double &y1, double &y2, int &ntic)
static float distance_to_line_segment(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2)
static bool equal(float x, float y, float e)
static bool near_line_segment(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2, float epsilon)
static bool unit_normal(Coord x, Coord y, Coord *perp)
void set_xy(Canvas *, Coord left, Coord bottom, Coord right, Coord top)
static void round_range_down(Coord x1, Coord x2, double &y1, double &y2, int &ntic)
static double anint(double)
static bool inside(Coord x, Coord min, Coord max)
static double round(float &x1, float &x2, int direction, int digits)
static void minmax(Coord &min, Coord &max)
static float distance_to_line(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2)
static float norm2(Coord x, Coord y)
static float min(int count, const float *)
static bool le(double x, double y, double e)
static bool eq2(double x, double y, double e)
int nrn_isdouble(double *, double, double)
static void extend(Extension &, Coord)
static bool near_line(Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2, float epsilon)
static bool eq(double x, double y, double e)
static float max(int count, const float *)
static void box(Requisition &, Coord &x1, Coord &y1, Coord &x2, Coord &y2)
static double resolution(double)
static bool lt(double x, double y, double e)