sknano.utils.geometric_shapes.Parallelepiped

class sknano.utils.geometric_shapes.Parallelepiped(o=None, u=None, v=None, w=None)[source][source]

Abstract representation of parallelepiped.

New in version 0.3.0.

Represents a parallelepiped with origin \(o\) and directions \(u, v, w\).

Parameters:

o : array_like, optional

parallelepiped origin

u, v, w : array_like, optional

parallelepiped direction vectors stemming from origin o.

Attributes

center
centroid
o
u
v
volume
w

Methods

contains_point(point) Check if point is contained within volume of Parallelepiped.
rotate([angle, rot_axis, anchor_point, ...]) Rotate GeometricRegion Points and Vectors.
translate(t[, fix_anchor_points]) Translate GeometricRegions Points and Vectors by Vector t.
update_region_limits()