wangrong
2025-01-03 2c4b8838f89bebca97615c5f0bac2c58e0349771
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
#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);
 
    };    
}