예제 #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();
        }
예제 #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();
        }