mt.geo.object
The base class to represent a geometric object.
Classes
GeometricObject
: A geometric object which lives in a d-dimensional Euclidean space.TwoD
: Mixin to assert that the geometric object lives in 2D Euclidean space.ThreeD
: Mixin to assert that the geometric object lives in 3D Euclidean space.
- class mt.geo.object.GeometricObject
A geometric object which lives in a d-dimensional Euclidean space.
A GeometricObject is a geometric object which lives in a d-dimensional Euclidean space. It can be a point, a point set, a polygon, a circle, a sphere, a parallelogram, a paralleloid, etc. This class represents the base class, in which the only property available is ndim, telling the number of dimensions. The user needs to implement ndim, or use some mixin classes like TwoD or ThreeD.
Inheritance
digraph inheritancea2426bfe12 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "GeometricObject" [URL="#mt.geo.object.GeometricObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A geometric object which lives in a d-dimensional Euclidean space."]; }- __weakref__
list of weak references to the object (if defined)
- property ndim
Returns the number of dimensions in which the geometric object lives.
- class mt.geo.object.TwoD
Mixin to assert that the geometric object lives in 2D Euclidean space.
Inheritance
digraph inheritance38943c57ea { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "TwoD" [URL="#mt.geo.object.TwoD",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin to assert that the geometric object lives in 2D Euclidean space."]; }- __weakref__
list of weak references to the object (if defined)
- property ndim
the dimensionality, which is 2
- class mt.geo.object.ThreeD
Mixin to assert that the geometric object lives in 3D Euclidean space.
Inheritance
digraph inheritance7dcc18d8c6 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ThreeD" [URL="#mt.geo.object.ThreeD",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin to assert that the geometric object lives in 3D Euclidean space."]; }- __weakref__
list of weak references to the object (if defined)
- property ndim
the dimensionality, which is 3