sknano.core.math.Points¶
-
class
sknano.core.math.Points(points=None, copylist=True, deepcopy=False)[source][source]¶ Class for collection of
Pointobjects.Parameters: points : {None, sequence,
Points}, optionalcopylist : bool, optional
perform shallow copy of points list
deepcopy : bool, optional
perform deepcopy of points list
Attributes
xReturn \(x\) coordinates of Pointobjects as array.yReturn \(y\) coordinates of Pointobjects as array.zReturn \(z\) coordinates of Pointobjects as array.Methods
append(item)clear()copy()count(item)extend(other)filter(condition[, invert])Filter Pointsby 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 byVectort.