mt.geond.hypercube

Classes

  • Hypercube: Axis-aligned n-dimensional hypercube.

class mt.geond.hypercube.Hypercube(offset_or_dltra, scale=1)

Axis-aligned n-dimensional hypercube.

An axis-aligned n-dimensional hypercube is defined as the set of points of the hypercube [-1,1]^n transformed by a dilated translation.

Parameters:
  • offset_or_dltra (1d array or Dltra) – array of coordinate values of the center of the hypercube or the dilated translation itself.

  • scale (float) – if the first argument is an offset, this argument specifies the uniform scale

dltra_tfm

the dilatation equivalent, which can be get/set

Type:

Dlt

dim

number of dimensions

Type:

int

minus_pt

the (-1,)^n point after being transformed by the dilatation

Type:

point

plus_pt

the (+1,)^n point after being transformed by the dilatation

Type:

point

min_coords

minimum coordinates

Type:

point

max_coords

maximum coordinates

Type:

point

center_pt

center point

Type:

point

size

box size

Type:

size/point

Inheritance

digraph inheritance9cf14c3a01 { 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."]; "Hypercube" [URL="#mt.geond.hypercube.Hypercube",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="Axis-aligned n-dimensional hypercube."]; "GeometricObject" -> "Hypercube" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
__init__(offset_or_dltra, scale=1)
__repr__()

Return repr(self).

property center_pt

center point

property dim

The dimensionality

property dltra_tfm

the dilatation

property max_coords

maximum coordinates

property min_coords

minimum coordinates

property minus_pt

The (-1,)^n point after being transformed by the dilatation.

classmethod ndim()

The dimensionality

property plus_pt

The (+1,)^n point after being transformed by the dilatation.

property size

box size