wangrong
2025-03-19 291afb9c81aae1d15d9e3edcea618d0a2e1fc5a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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));
    }
}