Previous topic

xsect.calc.multi_principal_angles

Next topic

xsect.calc.multi_principal_gyradii

This Page

xsect.calc.multi_gyradii

xsect.calc.multi_gyradii(add, subtract=[])[source]

Calculates the radii of gyrations about the x and y axes. Returns an array of shape (2,).

Parameters:
add : list

A list of (x, y) boundary coordinates for shapes included in the cross section. Each set of boundary coordinates should be of the shape (N, 2).

subtract : list

A list of (x, y) boundary coordinates for cut out shapes to be subtracted from the cross section. Each set of boundary coordinates should be of the shape (N, 2).