See section 11.16.1 for checking elements in two-dimensional geometry.
The is_element command takes as arguments two geometric objects.
is_element returns 1 is the first object is contained in the second, it returns 0 otherwise.
Input:
then:
Output:
Input:
then:
Output: