Core2D.Math.Rect2.Contains C# (CSharp) Method

Contains() public method

public Contains ( Vector2 point ) : bool
point Vector2
return bool
        public bool Contains(Vector2 point)
        {
            return ((point.X >= X)
                && (point.X - Width <= X)
                && (point.Y >= Y)
                && (point.Y - Height <= Y));
        }