ordering groups by distance (ascending/descending)
finding/removing outliers
finding smallesr circle which encloses unit group
determine linearity
random sampling
map checking:
closest pathable point
find cliffs on map
misc:
change of base (translation, scale, rotation)
natural logarithm
Qsort template (cleaner and better than the one in the default SC2 sorting library)
determine which side of screen unit is on
downloading and instalation
I have uploaded the file on SC2Mapster here:
Maths library
Just open the file in the map editor, select the whole lot and copy/paste into your own project for access.
Some of the functions are in GUI some in galaxy (unfortunately I could not figure out how to access galaxy at first. Otherwise they would ALL be in galaxy) but if you are still using the GUI you can access the galaxy scripts by using the "custom code" action and calling the function that way (remembering that the editor appends variables with "lv_")
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Description
Over time and multiple projects I have found myself importing and extending the same functions which I find myself needing again and again.
Here are a bunch of maths functions which I find I cannot do without and are sorely missing from the SC2 functions library:
Contents
Including but not limited to:
Basic geometry / vector arithmatic:
groups:
map checking:
misc:
downloading and instalation
I have uploaded the file on SC2Mapster here: Maths library
Just open the file in the map editor, select the whole lot and copy/paste into your own project for access.
Some of the functions are in GUI some in galaxy (unfortunately I could not figure out how to access galaxy at first. Otherwise they would ALL be in galaxy) but if you are still using the GUI you can access the galaxy scripts by using the "custom code" action and calling the function that way (remembering that the editor appends variables with "lv_")