Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
ConvexSet_base.contains, intersection: New
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 11, 2021
1 parent fa5dc6e commit f4bdffd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/sage/geometry/convex_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,30 @@ def cartesian_product(self, other):
The Cartesian product of ``self`` and ``other``.
"""

@abstract_method(optional=True)
def contains(self, point):
"""
Test whether ``self`` contains the given ``point``.
INPUT:
- ``point`` -- a point or its coordinates
"""

@abstract_method(optional=True)
def intersection(self, other):
r"""
Return the intersection of ``self`` and ``other``.
INPUT:
- ``other`` -- another convex set
OUTPUT:
The intersection.
"""


class ConvexSet_closed(ConvexSet_base):
r"""
Expand Down

0 comments on commit f4bdffd

Please sign in to comment.