mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix return type of cross product.
mod(Vector, Vector) was returning tuple, not Vector.
This commit is contained in:
parent
13f3c951e1
commit
6591b5dfd8
1 changed files with 3 additions and 1 deletions
|
@ -730,7 +730,9 @@ def mod(a, b, f32=True):
|
||||||
# cross product
|
# cross product
|
||||||
a = v2f(a)
|
a = v2f(a)
|
||||||
b = v2f(b)
|
b = v2f(b)
|
||||||
return F32((a[1]*b[2]-a[2]*b[1], a[2]*b[0]-a[0]*b[2], a[0]*b[1]-a[1]*b[0]), f32)
|
return Vector(F32((a[1]*b[2]-a[2]*b[1],
|
||||||
|
a[2]*b[0]-a[0]*b[2],
|
||||||
|
a[0]*b[1]-a[1]*b[0]), f32))
|
||||||
|
|
||||||
raise ELSLTypeMismatch
|
raise ELSLTypeMismatch
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue