Previous topic

xsect.calc.multi_principal_inertias

Next topic

xsect.calc.multi_gyradii

This Page

xsect.calc.multi_principal_angles

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

Calculates the angles from the x-axis to the principal axes. Returns 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).