X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgeometry.cpp;fp=src%2Fgeometry.cpp;h=f4918560990d8ddcd61709daf54aae49c6b4fadc;hb=10cf4c797bed05831e976068b7504908279dc997;hp=6b3935db57895998a63026dcb592c7b604229260;hpb=3c890e51a9763ffcee49e15753453a7da248272b;p=architektonas diff --git a/src/geometry.cpp b/src/geometry.cpp index 6b3935d..f491856 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -593,7 +593,7 @@ Arc Geometry::Unpack(Point tail, Point head, double bump) { double length = Vector::Magnitude(tail, head) / 2.0; double bumpLen = length * fabs(bump); - Point midpoint = Vector::Midpoint(tail, head); + Point midpoint = (tail + head) / 2.0; Vector mpNormal = Vector::Normal(tail, head); // Normal points to the left // Flip the normal if the bump is pointing left