wangrong
2025-01-18 8b0e31121a9a29b92a41fc575138a2e9b4c12d8e
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);
 
    };    
}