first commit

This commit is contained in:
陈赣
2026-06-03 12:43:14 +08:00
commit ba76cfae28
608 changed files with 120791 additions and 0 deletions

23
objects/shapes/vp_point.h Executable file
View 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);
};
}