mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 07:38:21 +00:00
Add a reference to the author name's origin
Add TODO on vectors and rotations, too.
This commit is contained in:
parent
1b3c8a4d89
commit
06f8370886
2 changed files with 7 additions and 0 deletions
|
@ -1150,6 +1150,10 @@ class foldconst(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
if nt in ('*', '/'):
|
if nt in ('*', '/'):
|
||||||
|
# TODO: <0,0,0,1>*rot, rot*<0,0,0,1>, rot/<0,0,0,1> -> rot
|
||||||
|
# <0,0,0,1>/<x,y,z,s> -> <-x,-y,-z, s>
|
||||||
|
# <0,0,0>*vec -> 0 if SEF
|
||||||
|
# <0,0,0>*rot -> <0,0,0> if SEF
|
||||||
# Extract signs outside
|
# Extract signs outside
|
||||||
if child[0].nt == 'NEG' or child[1].nt == 'NEG':
|
if child[0].nt == 'NEG' or child[1].nt == 'NEG':
|
||||||
a, b = 0, 1
|
a, b = 0, 1
|
||||||
|
|
3
main.py
3
main.py
|
@ -19,6 +19,9 @@
|
||||||
#
|
#
|
||||||
# If you choose to use a later version of the GPL, please modify the text
|
# If you choose to use a later version of the GPL, please modify the text
|
||||||
# in the Usage() function appropriately to indicate the correct version.
|
# in the Usage() function appropriately to indicate the correct version.
|
||||||
|
#
|
||||||
|
# Sei Lisa is the author's username in the Second Life(R) virtual world.
|
||||||
|
# Second Life is a registered trademark of Linden Research, Inc.
|
||||||
|
|
||||||
# This is the main executable program that imports the libraries.
|
# This is the main executable program that imports the libraries.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue