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

IsValidAndFree() public static method

public static IsValidAndFree ( Point position, Membrane creatures ) : bool
position System.Drawing.Point
creatures Membrane
return bool
        public static bool IsValidAndFree(Point position, Membrane[,] creatures)
        {
            return IsValid(position, creatures.GetLength(0), creatures.GetLength(1))
                   && IsFree(position, creatures);
        }