ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
|
Implementation of Polygon class with EDA-specific algorithms. More...
#include <zlayout/geometry/polygon.hpp>
#include <algorithm>
#include <cmath>
#include <limits>
#include <sstream>
Go to the source code of this file.
Namespaces | |
namespace | zlayout |
Main namespace for ZLayout library. | |
namespace | zlayout::geometry |
Macros | |
#define | _USE_MATH_DEFINES |
#define | M_PI 3.14159265358979323846 |
Functions | |
std::ostream & | zlayout::geometry::operator<< (std::ostream &os, const Polygon &polygon) |
bool | zlayout::geometry::segments_intersect (const Point &seg1_start, const Point &seg1_end, const Point &seg2_start, const Point &seg2_end) |
Check if two line segments intersect. | |
double | zlayout::geometry::angle_between_vectors (const Point &v1, const Point &v2) |
Calculate angle between two vectors in degrees. |
Implementation of Polygon class with EDA-specific algorithms.
Definition in file polygon.cpp.
#define _USE_MATH_DEFINES |
Definition at line 6 of file polygon.cpp.
#define M_PI 3.14159265358979323846 |
Definition at line 15 of file polygon.cpp.