public Polygon2D(List <Vector2Int> points) { this.points = points; if (!RoomTemplateLoaderGrid2D.IsClockwiseOriented(points.Select(x => x.ToCustomIntVector2()).ToList())) { this.points.Reverse(); } CheckValidity(); }
public static bool IsClockwiseOriented(IList <EdgarVector2Int> points) { return(RoomTemplateLoaderGrid2D.IsClockwiseOriented(points)); }