CellsAutomate.Tools.CommonMethods.IsValid C# (CSharp) Method

IsValid() public static method

public static IsValid ( Point x, int length, int height ) : bool
x System.Drawing.Point
length int
height int
return bool
        public static bool IsValid(Point x, int length, int height)
        {
            if (x.X < 0) return false;
            if (x.Y < 0) return false;
            if (x.X >= length) return false;
            if (x.Y >= height) return false;

            return true;
        }