summaryrefslogtreecommitdiffstats
path: root/Vertex.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-09-26 21:28:04 +0200
committerneoraider <devnull@localhost>2007-09-26 21:28:04 +0200
commit1e9704dca9a861ffb7b2d3978e1390bea7af7ef0 (patch)
tree5c6b7cc9486cb48129549f65b969f490fbf01d7a /Vertex.cpp
parent62e42408485e9e1b7e939925b650a4b2e90ecddb (diff)
downloadzoomedit-1e9704dca9a861ffb7b2d3978e1390bea7af7ef0.tar
zoomedit-1e9704dca9a861ffb7b2d3978e1390bea7af7ef0.zip
zoomedit: ?berschlagene Polygone werden jetzt korrekt gerendert
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));
}