X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/59770a7322eb89d91b45516e3a5b5693010a3035..6ec23dc57252ffe01aa60595fc499f580381e4a9:/pypol/coordinates.py diff --git a/pypol/coordinates.py b/pypol/coordinates.py index a880178..ceab418 100644 --- a/pypol/coordinates.py +++ b/pypol/coordinates.py @@ -4,6 +4,7 @@ import operator from collections import OrderedDict, Mapping +from .geometry import GeometricObject from .linexprs import Symbol @@ -78,7 +79,7 @@ class Coordinates: yield symbol, func(coordinate1, coordinate2) -class Point(Coordinates): +class Point(Coordinates, GeometricObject): """ This class represents points in space. """ @@ -120,10 +121,6 @@ class Vector(Coordinates): This class represents displacements in space. """ - __slots__ = ( - '_coordinates', - ) - def __new__(cls, initial, terminal=None): if not isinstance(initial, Point): initial = Point(initial)