mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
llAsin and llAcos return indet for indet input.
This commit is contained in:
parent
fe8869053b
commit
e051d49338
1 changed files with 2 additions and 2 deletions
|
@ -867,7 +867,7 @@ def llAbs(i):
|
|||
def llAcos(f):
|
||||
f = ff(f)
|
||||
try:
|
||||
return F32(math.acos(f))
|
||||
return F32(math.acos(f)) if not math.isnan(f) else f
|
||||
except ValueError:
|
||||
return NaN
|
||||
|
||||
|
@ -879,7 +879,7 @@ def llAngleBetween(r1, r2):
|
|||
def llAsin(f):
|
||||
f = ff(f)
|
||||
try:
|
||||
return F32(math.asin(f))
|
||||
return F32(math.asin(f)) if not math.isnan(f) else f
|
||||
except ValueError:
|
||||
return NaN
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue