mt.geo2d.point_list

The base class to represent a list of points.

Classes

class mt.geo2d.point_list.PointList2d(point_list: list | ndarray | array)

A list of 2D points.

See PointList for more details.

Parameters:
  • point_list (list or numpy.ndarray or glm.array) – A list of points, each of which is an iterable of D items, where D is the ndim of the class.

  • check (bool) – Whether or not to check if the shape is valid

points_glm

The array of vec2 points

Type:

glm.array

points

The numpy view of points_glm

Type:

numpy.ndarray(shape=(N,2))

Inheritance

digraph inheritance63cc6c9038 { 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."]; "PointList" [URL="../mt.geond/mt.geond.point_list.html#mt.geond.point_list.PointList",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 list of points."]; "GeometricObject" -> "PointList" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PointList2d" [URL="#mt.geo2d.point_list.PointList2d",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 list of 2D points."]; "TwoD" -> "PointList2d" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PointList" -> "PointList2d" [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_list: list | ndarray | array)