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

Implementation of Point class. More...

#include <zlayout/geometry/point.hpp>
#include <cmath>
#include <sstream>
#include <iomanip>
Include dependency graph for point.cpp:

Go to the source code of this file.

Namespaces

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

Functions

std::ostream & zlayout::geometry::operator<< (std::ostream &os, const Point &point)
double zlayout::geometry::distance (const Point &p1, const Point &p2)
 Calculate distance between two points.
Point zlayout::geometry::midpoint (const Point &p1, const Point &p2)
 Calculate midpoint between two points.
double zlayout::geometry::angle_between_points (const Point &p1, const Point &p2, const Point &p3)
 Calculate angle between three points (p1-p2-p3)
bool zlayout::geometry::are_collinear (const Point &p1, const Point &p2, const Point &p3)
 Check if three points are collinear.
int zlayout::geometry::orientation (const Point &p1, const Point &p2, const Point &p3)
 Calculate orientation of three points.

Detailed Description

Implementation of Point class.

Definition in file point.cpp.