sknano.utils.geometric_shapes.Parallelogram

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

Abstract object representation of a parallelogram.

Represents a parallelogram with origin \(o\) and directions \(u\) and \(v\).

Parameters:

o : array_like, optional

parallelogram origin

u, v : array_like, optional

parallelogram direction vectors stemming from origin o.

Attributes

area
center
centroid
o
u
v

Methods

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