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 notNone
, then a list ofPoint
instance objects or an existingPoints
instance object.Attributes
A
Return array of vectors. M
Return Points
as amatrix
.T
Return transpose of Points
as anndarray
.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 anndarray
.asmatrix
()Return Points
as amatrix
.clear
()copy
()count
(item)extend
(other)filter
(condition[, invert])Filter Points
bycondition
.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 Point
s coordinates.sort
([key, reverse])todict
()Return dict
of constructor parameters.tolist
()Return Points
aslist
translate
(t)Translate Point
s byVector
t
.