Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
numexcept.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/geometry.h>
35
36namespace ogdf {
37namespace energybased {
38namespace fmmm {
39
44class numexcept {
45public:
51 double ymin, double ymax);
52
57 static bool f_near_machine_precision(double distance, DPoint& force);
58
61 static bool nearly_equal(double a, double b);
62
64
65protected:
69
74 static bool f_rep_near_machine_precision(double distance, DPoint& force);
75
77 static double f_rep_scalar(double d) {
78 OGDF_ASSERT(d != 0);
79 return 1 / d;
80 }
81};
82
83}
84}
85}
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
This class is developed for exceptions that might occure, when nodes are placed at the same position ...
Definition numexcept.h:44
static double f_rep_scalar(double d)
Returns the repulsing force_function_value of scalar d.
Definition numexcept.h:77
static bool nearly_equal(double a, double b)
Returns true if a is "nearly" equal to b (needed, when machine accuracy is insufficient in functions ...
static DPoint choose_distinct_random_point_in_radius_epsilon(DPoint old_pos)
A random point (distinct from old_pos) on the disque around old_pos with radius epsilon = 0....
static bool f_rep_near_machine_precision(double distance, DPoint &force)
If distance has a value near the machine precision the repulsive force calculation is not possible (c...
static DPoint f_rep_u_on_v(DPoint pos_u, DPoint pos_v)
static DPoint choose_distinct_random_point_in_disque(DPoint old_point, double xmin, double xmax, double ymin, double ymax)
Returns a distinct random point within the smallest disque D with center old_point that is contained ...
static bool f_near_machine_precision(double distance, DPoint &force)
If distance has a value near the machine precision the (attractive)force calculation is not possible ...
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Definition basic.h:41
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.