first commit
This commit is contained in:
23
objects/shapes/vp_point.h
Executable file
23
objects/shapes/vp_point.h
Executable file
@@ -0,0 +1,23 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <utility>
|
||||
#include <cmath>
|
||||
|
||||
namespace vp_objects {
|
||||
// point in 2-dims coordinate system
|
||||
class vp_point
|
||||
{
|
||||
private:
|
||||
/* data */
|
||||
public:
|
||||
vp_point(int x = 0, int y = 0);
|
||||
~vp_point();
|
||||
|
||||
int x;
|
||||
int y;
|
||||
|
||||
// distance between 2 points
|
||||
float distance_with(const vp_point & p);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user