sknano.core.math.Points

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

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

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)
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])
translate(t) Translate Points by Vector t.