1 #ifndef _CLOSED_SHAPE_H
2 #define _CLOSED_SHAPE_H
6 #include "JellyPrerequisites.h"
11 namespace JellyPhysics
{
16 ClosedShape (const Vector2List
&input
) { mLocalVertices
= input
; finish(); }
19 int addVertex (const Vector2
&vec
);
20 void finish (bool recenter
=true);
22 const Vector2List
&getVertices () const { return mLocalVertices
; }
24 Vector2List
transformVertices (const Vector2
&worldPos
, float angleInRadians
, const Vector2
&scale
) const;
25 void transformVertices (const Vector2
&worldPos
, float angleInRadians
, const Vector2
&scale
, Vector2List
&outList
) const;
28 Vector2List mLocalVertices
;