Skip to content

Commit

Permalink
Added len function
Browse files Browse the repository at this point in the history
  • Loading branch information
smartycope committed Aug 18, 2024
1 parent ce63f71 commit 2c01f02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyndustri.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,9 @@ def noise(a: float, b: float) -> float:
def abs(a: float) -> float:
"""Absolute Value"""

def len(a) -> float:
"""The magnitude of a vector"""

def log(a: float) -> float:
"""Natural Logarithm"""

Expand Down
1 change: 1 addition & 0 deletions pyndustric/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"atan2": 2,
"noise": 2,
"abs": 1,
"len": 1,
"log": 1,
"log10": 1,
"sin": 1,
Expand Down

0 comments on commit 2c01f02

Please sign in to comment.