change Vector2 param to a const Vector2&
[physics.git] / src / Entities / Polygon.cpp
index 6b272bd..dc25174 100644 (file)
@@ -2,7 +2,7 @@
 #include "../Vector2.h"
 
 /// ***** Public Class Methods *****
-Polygon::Polygon(Vector2 pos, vector<Vector2> points)
+Polygon::Polygon(const Vector2& pos, vector<Vector2> points)
     : PhysicsEntity(pos), points(points)
 {
     CreateBindingBox();
@@ -18,7 +18,7 @@ void Polygon::draw() const
 }
 
 /// ***** Private Class Methods *****
-void CreateBindingBox()
+void Polygon::CreateBindingBox()
 {
     // TODO
 }