Cascade.PolygonRect.CenterOrigin C# (CSharp) Method

CenterOrigin() public method

Places the origin at the center of the polygons
public CenterOrigin ( ) : void
return void
        public void CenterOrigin()
        {
            Origin = new Vector3(width / 2, height / 2, 0);
        }
        //reset Rectangle to a default state