ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
polygon.hpp File Reference

Polygon class for complex geometric shapes and EDA components. More...

#include <zlayout/geometry/point.hpp>
#include <zlayout/geometry/rectangle.hpp>
#include <vector>
#include <string>
#include <utility>
Include dependency graph for polygon.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zlayout::geometry::Polygon
 Polygon class supporting both convex and concave polygons. More...
struct  zlayout::geometry::PolygonHash
 Hash function for Polygon (for use in std::unordered_map, etc.) More...

Namespaces

namespace  zlayout
 Main namespace for ZLayout library.
namespace  zlayout::geometry

Functions

bool zlayout::geometry::line_intersection (const Point &line1_start, const Point &line1_end, const Point &line2_start, const Point &line2_end, Point &intersection)
 Calculate intersection point of two infinite lines.
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.

Detailed Description

Polygon class for complex geometric shapes and EDA components.

Definition in file polygon.hpp.