Core2D.Math.Rect2.Contains C# (CSharp) Méthode

Contains() public méthode

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