Skip to content

Commit

Permalink
chore: improve signatures for math utils functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tlux committed Apr 7, 2024
1 parent fc87294 commit 5980678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tint/utils/math.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Tint.Utils.Math do
:math.pow(value, 1.0 / n)
end

@spec rad_to_deg(float) :: float
@spec rad_to_deg(number) :: float
def rad_to_deg(value) do
pi = :math.pi()

Expand All @@ -20,7 +20,7 @@ defmodule Tint.Utils.Math do
value * (180 / pi)
end

@spec deg_to_rad(float) :: float
@spec deg_to_rad(number) :: float
def deg_to_rad(value) do
value * (:math.pi() / 180)
end
Expand Down

0 comments on commit 5980678

Please sign in to comment.