mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
vector * quaternion: Simplified by precalculating the repeated products and removing math.fsum. quaternion * quaternion: Add more F32's to get a result closer to SL's (still not there, but we're definitively closer now). We left out quaternion/quaternion in the tests, and the q*q test was not general enough (had many zeros). Remedied that.
110 lines
No EOL
1 KiB
Text
110 lines
No EOL
1 KiB
Text
[ 0
|
|
, 0
|
|
, -0.
|
|
, -0.
|
|
, 0.
|
|
, 0
|
|
, 0
|
|
, 0
|
|
, 1
|
|
, 0
|
|
, 0
|
|
, -1
|
|
, 0
|
|
, 0
|
|
, -1
|
|
, 0
|
|
, 0
|
|
, 1
|
|
, -2147483648
|
|
, <1., 2., 3.>
|
|
, -2147483648
|
|
, -2147483647
|
|
, 2147483647
|
|
, -2147483648.
|
|
, -2147483648.
|
|
, -2147483648.
|
|
, <0.5, -0.5, -0.4>
|
|
, <0.5, -0.5, -0.4, 0.4>
|
|
, <3., 6., 9.>
|
|
, <3., 6., 9., 12.>
|
|
, ["1", "2"]
|
|
, ["1", "2"]
|
|
, ["1", "2"]
|
|
, "12"
|
|
, -1
|
|
, -1.
|
|
, -1.
|
|
, -1.
|
|
, 2147483647
|
|
, <-1., -2., -3.>
|
|
, <-1., -2., -3., -4.>
|
|
, <2., 4., 6.>
|
|
, <6.8, -6.4, 3.2, -1.6>
|
|
, 2
|
|
, 2.
|
|
, 2.
|
|
, 2.
|
|
, 50.
|
|
, <3., 4., 5.>
|
|
, <3., 4., 5.>
|
|
, <2.6432, 3.8576, 5.304>
|
|
, <3.4, 3.72, 4.96>
|
|
, "FIXME: We're not obtaining the same as SL; expected output should be 8.32 exact rather than 8.320001"
|
|
, <6.24, 8.320001, 12.8, 10.>
|
|
, <-1.08, 0.2800001, -0.7600001, 19.24>
|
|
, 0
|
|
, 1
|
|
, 2
|
|
, 3
|
|
, 4
|
|
, 0
|
|
, 1
|
|
, -1
|
|
, -2
|
|
, -3
|
|
, -4
|
|
, 0
|
|
, -1
|
|
, 0
|
|
, 1
|
|
, 2
|
|
, 3
|
|
, 4
|
|
, 0
|
|
, 1
|
|
, -1
|
|
, -2
|
|
, -3
|
|
, -4
|
|
, 0
|
|
, -1
|
|
, -3
|
|
, -3
|
|
, 5
|
|
, 5
|
|
, <0., 0., 1.>
|
|
, -2147483648
|
|
, -2147483648
|
|
, 1
|
|
, 2
|
|
, -2147483648
|
|
, 1
|
|
, 2
|
|
, -2147483648
|
|
, 1
|
|
, 4
|
|
, 4
|
|
, -1
|
|
, -1
|
|
, -1073741824
|
|
, -536870912
|
|
, -1
|
|
, -1
|
|
, -1073741824
|
|
, -536870912
|
|
, -1
|
|
, -1073741824
|
|
, -536870912
|
|
, -268435456
|
|
] |