first commit
This commit is contained in:
17
objects/shapes/vp_line.cpp
Executable file
17
objects/shapes/vp_line.cpp
Executable file
@@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user