mt.geo2d.point

The base class to represent a point.

For efficiency reasons, please try to bunch points into arrays or lists and use appropriate representations instead of using single points implemented here.

Classes

  • Point2d: A 2D point implemented in glm.

class mt.geo2d.point.Point2d(point)

A 2D point implemented in glm.

See Point for more details.

point_glm

The point in glm.

Type:

glm.vec2

point

The numpy view of point_glm

Type:

numpy.ndarray(shape=(2,), dtype=numpy.float32)

Inheritance

digraph inheritance8f4e93763c { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "GeometricObject" [URL="../mt.geo/mt.geo.object.html#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."]; "Point" [URL="../mt.geond/mt.geond.point.html#mt.geond.point.Point",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 point."]; "GeometricObject" -> "Point" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Point2d" [URL="#mt.geo2d.point.Point2d",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 2D point implemented in glm."]; "TwoD" -> "Point2d" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Point" -> "Point2d" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TwoD" [URL="../mt.geo/mt.geo.object.html#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."]; }
__init__(point)