X-Git-Url: https://svn.cri.mines-paristech.fr/git/linpy.git/blobdiff_plain/663316ddc03c19cf06e95bad67fd5ac2bb5e1dfc..b595adab7a332fccf90714d194e70fdf73e458e3:/pypol/coordinates.py?ds=inline

diff --git a/pypol/coordinates.py b/pypol/coordinates.py
index 78e8d4a..7923648 100644
--- a/pypol/coordinates.py
+++ b/pypol/coordinates.py
@@ -112,6 +112,13 @@ class Point(Coordinates):
         return isinstance(other, Point) and \
             self._coordinates == other._coordinates
 
+    def aspolyhedron(self):
+        from .polyhedra import Polyhedron
+        equalities = []
+        for symbol, coordinate in self.coordinates():
+            equalities.append(symbol - coordinate)
+        return Polyhedron(equalities)
+
 
 class Vector(Coordinates):
     """