Mutable demo
polygon.h File Reference
#include <iostream>
#include <vector>
#include <cmath>
Include dependency graph for polygon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Point2D
 Class containing a point in 2D. More...
 
class  Polygon_old
 
class  Polygon
 Contains the description of a polygon, now with mutable. The traverse is stored. More...
 

Functions

std::ostream & operator<< (std::ostream &s, const Point2D &rhs)
 Output operator for class Point2D. More...
 
float dist (const Point2D &a, const Point2D &b)
 Calculates the Euclidian distance between two points in 2D. More...
 

Function Documentation

◆ dist()

float dist ( const Point2D a,
const Point2D b 
)
inline

Calculates the Euclidian distance between two points in 2D.

Parameters
[in]afirst point
[in]bsecond point
Returns
Euclidian distance

Definition at line 52 of file polygon.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const Point2D rhs 
)

Output operator for class Point2D.

Parameters
[in,out]soutput stream
[in]rhsclass instance
Returns
output stream