first commit
This commit is contained in:
25
objects/shapes/vp_polygon.h
Executable file
25
objects/shapes/vp_polygon.h
Executable file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "vp_point.h"
|
||||
|
||||
namespace vp_objects {
|
||||
class vp_polygon
|
||||
{
|
||||
private:
|
||||
/* data */
|
||||
public:
|
||||
vp_polygon() = default;
|
||||
vp_polygon(std::vector<vp_point> vertexs);
|
||||
~vp_polygon();
|
||||
|
||||
// vertexs of the polygon
|
||||
std::vector<vp_point> vertexs;
|
||||
|
||||
// check if the polygon contains a point
|
||||
bool contains(const vp_point & p);
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user