Ejemplo n.º 1
0
        /// <summary>
        /// Get the four corners of the given FloatRect
        /// </summary>
        public static IEnumerable <Vector2f> GetCorners(this FloatRect rect)
        {
            var list = new List <Vector2f>
            {
                rect.TopLeft(),
                rect.TopRight(),
                rect.BottomRight(),
                rect.BottomLeft()
            };

            return(list);
        }