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

18
objects/shapes/vp_point.cpp Executable file
View File

@@ -0,0 +1,18 @@
#include "vp_point.h"
namespace vp_objects {
vp_point::vp_point(int x, int y): x(x), y(y) {
}
vp_point::~vp_point() {
}
float vp_point::distance_with(const vp_point & p) {
return std::sqrt(std::pow(x-p.x, 2) + std::pow(y-p.y, 2));
}
}