sknano.core.math.Points

class sknano.core.math.Points(points=None, copylist=True, deepcopy=False)[source][source]

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.

copylist : bool, optional

perform shallow copy of points list

deepcopy : bool, optional

perform deepcopy of points list

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, rot_axis, anchor_point, ...]) Rotate Points coordinates.
sort([key, reverse])
translate(t) Translate Points by Vector t.