Points

class sknano.core.math.Points(points=None)[source] [edit on github][source]

Bases: sknano.core.strings.TabulateMixin, sknano.core.collections.UserList

Container class for collection of Point objects.

Parameters:points ({None, sequence, Points}, optional) – if not None, then a list of Point instance objects or an existing Points instance object.

Attributes

A Return array of vectors.
M Return Points as a matrix.
T Return transpose of Points as an ndarray.
fmtstr Format string.
minmax Minimum/maximum x, y, z components.
x Return \(x\) coordinates of Point objects as array.
y Return \(y\) coordinates of Point objects as array.
z Return \(z\) coordinates of Point objects as array.

Methods

append(item)
asarray() Return Points as an ndarray.
asmatrix() Return Points as a matrix.
clear()
copy()
count(item)
extend(other)
filter(condition[, invert]) Filter Points by condition.
index(item, *args)
insert(i, item)
pop([i])
remove(item)
reverse()
rezero([epsilon]) Set really really small coordinates to zero.
rotate([angle, axis, anchor_point, ...]) Rotate Points coordinates.
sort([key, reverse])
todict() Return dict of constructor parameters.
tolist() Return Points as list
translate(t) Translate Points by Vector t.