Nez.Portable/Physics/Shapes/Polygon.cs
/// <summary>
/// recenters the points of the polygon
/// </summary>
/// <param name="points">Points.</param>
recenters the points of the polygon
recenters the points of the polygon
public static void recenterPolygonVerts(Vector2[] points)
        {
            var center = findPolygonCenter(points);
            for (var i = 0; i < points.Length; i++)
                points[i] -= center;
        }
public static void recenterPolygonVerts ( Vector2 [ ] points ) { var center = findPolygonCenter ( points ) ; for ( var i = 0 ; i < points . Length ; i ++ ) points [ i ] -= center ; }
recenters the points of the polygon
recenters the points of the polygon
points
Vector2[]
None