public static Vertices createRectangle( float hx, float hy ) { var vertices = new Vertices( 4 ); vertices.Add( new Vector2( -hx, -hy ) ); vertices.Add( new Vector2( hx, -hy ) ); vertices.Add( new Vector2( hx, hy ) ); vertices.Add( new Vector2( -hx, hy ) ); return vertices; }