Defines some simple geometry structs and classes. There are struct Rectangle, struct DiscretePoint2D, class DiscreteLine2D. More...
#include <vector>
#include <cmath>
Go to the source code of this file.
Classes | |
class | DiscreteLine2D |
Defines a line segment on a plane. More... | |
struct | DiscretePoint2D |
Defines a point with integer coordinates on a plane. More... | |
struct | Rectangle |
Defines an axis-aligned rectangle. More... | |
Macros | |
#define | EQ_DOUBLE(a, b) (std::abs((a) - (b)) < 0.0001) |
Defines some simple geometry structs and classes. There are struct Rectangle, struct DiscretePoint2D, class DiscreteLine2D.
Definition in file geometry_utils.h.
#define EQ_DOUBLE | ( | a, | |
b | |||
) | (std::abs((a) - (b)) < 0.0001) |
Definition at line 14 of file geometry_utils.h.