summaryrefslogtreecommitdiffstats
path: root/Vertex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Vertex.cpp')
-rw-r--r--Vertex.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Vertex.cpp b/Vertex.cpp
index a2aefaf..7e2528f 100644
--- a/Vertex.cpp
+++ b/Vertex.cpp
@@ -1,12 +1,12 @@
#include "Vertex.h"
#include <math.h>
-double Vertex::distanceSq(const Vertex &v) const {
+float Vertex::distanceSq(const Vertex &v) const {
return (x - v.x)*(x - v.x) + (y - v.y)*(y - v.y);
}
-double Vertex::distance(const Vertex &v) const {
- return sqrt(distanceSq(v));
+float Vertex::distance(const Vertex &v) const {
+ return sqrtf(distanceSq(v));
}