Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fix smoothstep
Browse files Browse the repository at this point in the history
  • Loading branch information
UtaUtaUtau committed Dec 30, 2022
1 parent af2893c commit d908e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion straycat.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def smoothstep(edge0, edge1, x):
if x < 0:
x = 0
elif x > 1:
x = 0
x = 1
return 3*x*x - 2*x*x*x

@vectorize([float64(float64, float64, float64)], nopython=True)
Expand Down

0 comments on commit d908e2f

Please sign in to comment.