Cascade.PolygonRect.PolygonRect C# (CSharp) Method

PolygonRect() public method

public PolygonRect ( float Width, float Height ) : Microsoft.Xna.Framework
Width float
Height float
return Microsoft.Xna.Framework
        public PolygonRect(float Width, float Height)
        {
            width = Width; height = Height;
            color = new ColorManager();
            color.Color = Color.Black;
            vertices = new CascadeVertex[6];
            vertices[0] = new CascadeVertex(new Vector3(0, 0, 0), Color.Red);
            vertices[1] = new CascadeVertex(new Vector3(Width, 0, 0), Color.Red);
            vertices[2] = new CascadeVertex(new Vector3(Width, Height, 0), Color.Red);
            vertices[3] = new CascadeVertex(new Vector3(Width, Height, 0), Color.Red);
            vertices[4] = new CascadeVertex(new Vector3(0, Height, 0), Color.Red);
            vertices[5] = new CascadeVertex(new Vector3(0, 0, 0), Color.Red);
            Origin = Vector3.Zero;
        }
        /// <summary>