summaryrefslogtreecommitdiffstats
path: root/LevelEdge.h
diff options
context:
space:
mode:
Diffstat (limited to 'LevelEdge.h')
-rw-r--r--LevelEdge.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/LevelEdge.h b/LevelEdge.h
index 7fb4e1a..f5f9bfd 100644
--- a/LevelEdge.h
+++ b/LevelEdge.h
@@ -51,14 +51,8 @@ class LevelEdge : public LevelObject {
provider->moveEdge(id, x, y);
}
- virtual void rotate(float a) {
- provider->rotateEdge(id, a);
- }
-
- virtual Vertex getCenter() const {
- Line l = provider->getEdge(id)->toLine();
-
- return (l.getVertex1()+l.getVertex2()) / 2;
+ virtual void rotate(Vertex m, float a) {
+ provider->rotateEdge(id, m, a);
}
const Edge* operator->() const {return provider->getEdge(id);}