diff options
author | neoraider <devnull@localhost> | 2007-09-26 21:28:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-09-26 21:28:04 +0200 |
commit | 1e9704dca9a861ffb7b2d3978e1390bea7af7ef0 (patch) | |
tree | 5c6b7cc9486cb48129549f65b969f490fbf01d7a /Vertex.cpp | |
parent | 62e42408485e9e1b7e939925b650a4b2e90ecddb (diff) | |
download | zoomedit-1e9704dca9a861ffb7b2d3978e1390bea7af7ef0.tar zoomedit-1e9704dca9a861ffb7b2d3978e1390bea7af7ef0.zip |
zoomedit: ?berschlagene Polygone werden jetzt korrekt gerendert
Diffstat (limited to 'Vertex.cpp')
-rw-r--r-- | Vertex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); } |