#include <limits.h>#include <math.h>


Go to the source code of this file.
Defines | |
| #define | _GNU_SOURCE 1 |
| #define | MIN(a, b) ((a)<(b)?(a):(b)) |
| #define | MAX(a, b) ((a)>(b)?(a):(b)) |
| #define | ABS(a) ((a) >= 0 ? (a) : -(a)) |
| #define | INT_MAX ((int)(~(unsigned)0 >> 1)) |
| #define | INT_MIN (-INT_MAX - 1) |
| #define | MAXSHORT (0x7fff) |
| #define | MAXDOUBLE 1.7976931348623157e+308 |
| #define | MAXFLOAT ((float)3.40282347e+38) |
| #define | BETWEEN(a, b, c) (((a) <= (b)) && ((b) <= (c))) |
| #define | M_PI 3.14159265358979323846 |
| #define | SQRT2 1.41421356237309504880 |
| #define | ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) |
| #define | RADIANS(deg) ((deg)/180.0 * M_PI) |
| #define | DEGREES(rad) ((rad)/M_PI * 180.0) |
| #define | SQR(a) ((a) * (a)) |
| #define | sincos(x, s, c) *s = sin(x); *c = cos(x) |
| #define ABS | ( | a | ) | ((a) >= 0 ? (a) : -(a)) |
Definition at line 51 of file arith.h.
Referenced by bezier_clip(), fillLine(), find_intersection(), and spline_at_y().
| #define BETWEEN | ( | a, | |||
| b, | |||||
| c | ) | (((a) <= (b)) && ((b) <= (c))) |
| #define INT_MAX ((int)(~(unsigned)0 >> 1)) |
Definition at line 54 of file arith.h.
Referenced by bfs(), compute_bb(), dijkstra(), and sizeArray().
| #define M_PI 3.14159265358979323846 |
Definition at line 79 of file arith.h.
Referenced by attach_attrs_and_arrows(), endpath(), layout_block(), makeObstacle(), and solve3().
| #define MAX | ( | a, | |||
| b | ) | ((a)>(b)?(a):(b)) |
Definition at line 46 of file arith.h.
Referenced by adjustGrid(), arrow_bb(), beginpath(), box_bb(), box_intersect(), boxf_bb(), boxf_intersect(), colorxlate(), endpath(), find_intersection(), flat_edges(), makeGraphs(), merge_chain(), putGraphs(), scan_graph_mode(), and sizeLinearArray().
| #define MAXDOUBLE 1.7976931348623157e+308 |
Definition at line 66 of file arith.h.
Referenced by choose_node(), and stress_majorization_kD_mkernel().
| #define MAXFLOAT ((float)3.40282347e+38) |
Definition at line 70 of file arith.h.
Referenced by dijkstra_f(), and stress_majorization_kD_mkernel().
| #define MAXSHORT (0x7fff) |
| #define MIN | ( | a, | |||
| b | ) | ((a)<(b)?(a):(b)) |
Definition at line 41 of file arith.h.
Referenced by addEdgeLabels(), arrow_bb(), beginpath(), box_bb(), box_intersect(), boxf_bb(), boxf_intersect(), colorxlate(), embed_graph(), endpath(), fdp_init_graph(), putGraphs(), and round_corners().
| #define RADIANS | ( | deg | ) | ((deg)/180.0 * M_PI) |
| #define ROUND | ( | f | ) | ((f>=0)?(int)(f + .5):(int)(f - .5)) |
Definition at line 86 of file arith.h.
Referenced by box_connection(), core_loadimage_xdot(), gvLayout(), makeSpline(), output_point(), and place_portlabel().
1.5.6