first commit
This commit is contained in:
18
objects/shapes/vp_polygon.cpp
Executable file
18
objects/shapes/vp_polygon.cpp
Executable file
@@ -0,0 +1,18 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include "vp_polygon.h"
|
||||
|
||||
namespace vp_objects {
|
||||
|
||||
vp_polygon::vp_polygon(std::vector<vp_point> vertexs): vertexs(vertexs) {
|
||||
assert(vertexs.size() > 2);
|
||||
}
|
||||
|
||||
vp_polygon::~vp_polygon() {
|
||||
|
||||
}
|
||||
|
||||
bool vp_polygon::contains(const vp_point & p) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user