Skip to content

Commit

Permalink
Documentation for Shape class
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccomb committed Dec 30, 2023
1 parent 1e7f55e commit 262bfd7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions trussme/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,38 @@ def __init__(self):

@abc.abstractmethod
def moi(self) -> float:
"""
The moment of inertia of the shape
Returns
-------
float
The moment of inertia of the shape
"""
pass

@abc.abstractmethod
def area(self) -> float:
"""
The cross-sectional area of the shape
Returns
-------
float
The cross-sectional area of the shape
"""
pass

@abc.abstractmethod
def name(self) -> str:
"""
The name of the shape
Returns
-------
str
The name of the shape
"""
pass


Expand Down

0 comments on commit 262bfd7

Please sign in to comment.