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

24
objects/shapes/vp_line.h Executable file
View File

@@ -0,0 +1,24 @@
#pragma once
#include "vp_point.h"
namespace vp_objects {
// line in 2-dims coordinate system
class vp_line {
private:
/* data */
public:
vp_line() = default;
vp_line(vp_point start, vp_point end);
~vp_line();
vp_point start;
vp_point end;
// distance between start and end point
float length();
};
}