nrv.utils.geom

Description

Utils Geometrical general purpose functions and classes

utils.geom provides some classes and functions allowing to desig and handle various geomatrical shapes.

Classes

CShape([center, radius, rot, degree])

Abstract base class for closed-shaped geometries.

Circle([center, radius])

Circle class that inherits from Cshape.

Ellipse([center, radius, rot, degree])

Ellipse class that inherits from Cshape.

Polygon([vertices])

Polygon class that inherits from Cshape.

Functions

create_cshape([center, radius, rot, degree, ...])

generate a CShape from parameters

get_cshape_bbox(shape[, looped_end])

Return the corners of the bounding box of a closed shape.

circle_overlap_checker(c, r, c_comp, r_comp)

Check if a cicle of center c and radius r overlap with a list of circles of center c_comp and radius r_comp

cshape_overlap_checker(s, s_comp[, n_trace, ...])

Check if a CShape overlape with another or a list of them.