Exemple #1
0
        /// <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();
        }
Exemple #2
0
        /// <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();
        }