They are inverse relationships: A contains B , and B lies within A
>>> A.contains(B) True >>> B.within(A) True +----------------------------------+ | | | +----------+ | | | | | | | | | | | | | | | | | | | | | | | B | | | | | | | +----------+ | | | | | | A | | | +----------------------------------+
source share