Skip to content

Commit

Permalink
added type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-7800 committed Apr 26, 2024
1 parent 2dfd9d5 commit 8503ad2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions elastica/rigidbody/mesh_rigid_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ def __init__(
Parameters
----------
mesh
center_of_mass
mass_second_moment_of_inertia
density
volume
mesh: mesh object
mesh object which the mesh rigid body is based on
center_of_mass: numpy.ndarray
1D (3,) array containing data with 'float' type
center of mass of the mesh rigid body
mass_second_moment_of_inertia: numpy.ndarray
2D (3,3) array containing data with 'float' type
mass second moment of inertia of the mesh rigid body
density: float
density of the mesh rigid body
volume: float
volume of the mesh rigid body
"""
# rigid body does not have elements it only have one node. We are setting n_elems to
# zero for only make code to work. _bootstrap_from_data requires n_elems to be defined
Expand Down

0 comments on commit 8503ad2

Please sign in to comment.