mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +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):
|
def llAcos(f):
|
||||||
f = ff(f)
|
f = ff(f)
|
||||||
try:
|
try:
|
||||||
return F32(math.acos(f))
|
return F32(math.acos(f)) if not math.isnan(f) else f
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return NaN
|
return NaN
|
||||||
|
|
||||||
|
@ -879,7 +879,7 @@ def llAngleBetween(r1, r2):
|
||||||
def llAsin(f):
|
def llAsin(f):
|
||||||
f = ff(f)
|
f = ff(f)
|
||||||
try:
|
try:
|
||||||
return F32(math.asin(f))
|
return F32(math.asin(f)) if not math.isnan(f) else f
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return NaN
|
return NaN
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue