SilverlightMappingToolBasic.UI.ShapeExtensionMethods.IsInBoundaryInclusively C# (CSharp) Method

IsInBoundaryInclusively() public static method

public static IsInBoundaryInclusively ( this test, Point lowerX, Point upperX, Point lowerY, Point upperY ) : bool
test this
lowerX Point
upperX Point
lowerY Point
upperY Point
return bool
        public static bool IsInBoundaryInclusively(this Point test, Point lowerX, Point upperX, Point lowerY, Point upperY)
        {
            if (test.X >= lowerX.X && test.X <= upperX.X)
            {
                if (test.Y >= lowerY.Y && test.Y <= upperY.Y)
                {
                    return true;
                }
            }

            return false;
        }