Graphviz
2.41.20171026.1811
|
#include <limits.h>
#include <math.h>
Go to the source code of this file.
Macros | |
#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 | AVG(a, b) ((a + b) / 2) |
#define | SGN(a) (((a)<0)? -1 : 1) |
#define | CMP(a, b) (((a)<(b)) ? -1 : (((a)>(b)) ? 1 : 0)) |
#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 45 of file arith.h.
Referenced by bezier_clip(), fillLine(), get_angle(), makeDotGraph(), Operator_diag_precon_new(), Operator_uniform_stress_diag_precon_new(), SparseMatrix_crop(), SparseMatrix_is_symmetric(), SparseMatrix_normalize_by_row(), SparseMatrix_page_rank(), SparseMatrix_pseudo_diameter_weighted(), spline_at_y(), stress_majorization_kD_mkernel(), uniform_stress(), and UniformStressSmoother_new().
#define BETWEEN | ( | a, | |
b, | |||
c | |||
) | (((a) <= (b)) && ((b) <= (c))) |
Definition at line 74 of file arith.h.
Referenced by spline_at_y().
#define INT_MAX ((int)(~(unsigned)0 >> 1)) |
Definition at line 52 of file arith.h.
Referenced by bfs(), compute_bb(), dijkstra(), rank1(), sizeArray(), and validQ_int_string().
#define INT_MIN (-INT_MAX - 1) |
Definition at line 56 of file arith.h.
Referenced by validQ_int_string().
#define M_PI 3.14159265358979323846 |
Definition at line 77 of file arith.h.
Referenced by attach_attrs_and_arrows(), endpath(), layout_block(), makeObstacle(), and wedgedEllipse().
#define MAXDOUBLE 1.7976931348623157e+308 |
Definition at line 64 of file arith.h.
Referenced by choose_node(), Plegal_arrangement(), rank3(), stress_majorization_kD_mkernel(), and xdotBB().
#define MAXFLOAT ((float)3.40282347e+38) |
Definition at line 68 of file arith.h.
Referenced by dijkstra_f(), and stress_majorization_kD_mkernel().
#define MAXSHORT (0x7fff) |
Definition at line 60 of file arith.h.
Referenced by dot_scan_ranks().
#define MIN | ( | a, | |
b | |||
) | ((a)<(b)?(a):(b)) |
Definition at line 35 of file arith.h.
Referenced by addEdgeLabels(), arrow_bb(), beginpath(), colorxlate(), edgelist_export(), embed_graph(), endpath(), export_embedding(), get_gradient_points(), Import_coord_clusters_from_dot(), makeDotGraph(), on_drawingarea1_configure_event(), on_drawingarea2_expose_event(), oned_optimizer_train(), Plegal_arrangement(), polyBB(), QuadTree_new_from_point_list(), round_corners(), scale_to_box(), SparseMatrix_k_centers(), SparseMatrix_k_centers_user(), SparseMatrix_pseudo_diameter_unweighted(), SparseMatrix_sum_repeat_entries(), and vector_percentile().
#define RADIANS | ( | deg | ) | ((deg)/180.0 * M_PI) |
Definition at line 85 of file arith.h.
Referenced by place_portlabel().
Definition at line 84 of file arith.h.
Referenced by box_connection(), fillLine(), gvLayout(), make_aux_edge(), and tcldot_layout().
#define SGN | ( | a | ) | (((a)<0)? -1 : 1) |
Definition at line 48 of file arith.h.
Referenced by fillLine().