wangrong
2025-01-03 2c4b8838f89bebca97615c5f0bac2c58e0349771
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
#include "vp_line.h"
 
namespace vp_objects {
    vp_line::vp_line(vp_point start, vp_point end): start(start), end(end) {
 
    }
    
    vp_line::~vp_line() {
 
    }
 
    float vp_line::length() {
        return start.distance_with(end);
    }
}