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

Commit

Permalink
RelativeInterior.representative_point: New
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 9, 2022
1 parent 8ba6fcd commit f0708e7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/sage/geometry/relative_interior.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,22 @@ def _some_elements_(self):
if p in self:
yield p

def representative_point(self):
"""
Return a "generic" point of ``self``.
OUTPUT:
A point in ``self`` (thus, in the relative interior of ``self``) as a coordinate vector.
EXAMPLES::
sage: C = Cone([[1, 2, 0], [2, 1, 0]])
sage: C.relative_interior().representative_point()
(1, 1, 0)
"""
return self._polyhedron.representative_point()

def _repr_(self):
r"""
Return a description of ``self``.
Expand Down

0 comments on commit f0708e7

Please sign in to comment.