/// <summary> /// Constructs a polygon from the given points. /// </summary> /// <param name="points"></param> public Polygon(IVector2List points) { this.points = points.ToVector2List(); this.points.Dirty = true; ComputeAllProperties(); }
/// <summary> /// Constructs a polygon from the given points. /// </summary> /// <param name="points"></param> public Polygon(IEnumerable <Vector2> points) : this() { this.points = points.ToVector2List(); this.points.Dirty = true; ComputeAllProperties(); }