HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

vector library

05-09-2008, 10:13 AM#1
grim001
I finished creating a new vector library, here's the pastebin link.

http://www.wc3campaigns.net/pastebin...261aa85a58cf99

It's similar to antitarf's vjass vectors, so there's no reason to submit it.
But it has several useful functions that aren't included in other vector systems, so I'll put a link here in case anyone wants to grab it or post feedback.
05-10-2008, 01:40 PM#2
Silvenon
Why do you use such non-capitalized function names? Doesn't that look ugly to you? I'm just curious why people do that, it doesn't make any sense......

Otherwise, nice.
05-10-2008, 01:49 PM#3
grim001
I dunno, there is something catchy about not capitalizing the first letter of a method name. I do capitalize the first letters of function names.
05-10-2008, 03:22 PM#4
Toadcop
Quote:
Why do you use such non-capitalized function names? Doesn't that look ugly to you? I'm just curious why people do that, it doesn't make any sense......
non sense post.

use temp globals instead of initing alot local vars. it will be MUCH faster. (especialy in functions which you intialize ~6+ local vars.)

// if you have doubts ask PipeDream.
05-10-2008, 03:45 PM#5
Vexorian
Quote:
Why do you use such non-capitalized function names?
They are not non-capitalized but camelized. If you take a look and a lot of people do that for methods (I think it is the Java name convention as well) and for some reason things like onDestroy, create, allocate onInit do that as well.


Quote:
use temp globals instead of initing alot local vars. it will be MUCH faster.
I'd say it depends on the number of globals. And the times you call the other ones.
05-10-2008, 03:48 PM#6
grim001
Quote:
Originally Posted by Vexorian
I'd say it depends on the number of globals. And the times you call the other ones.

Maps using structs will have hundreds or thousands of globals, so I don't think they are much better at that point...

Also no one really cares about speed when they are using wrapper functions to do the math for them.
05-10-2008, 04:01 PM#7
Toadcop
Quote:
Maps using structs will have hundreds or thousands of globals, so I don't think they are much better at that point...
you don't need to think you need to test. we allready did it. i remember cohadar create a map with ALOT (thousands) of global vars. and it doesnt slow down globals. (maybe a sligthy -> not mentionable.)

+ it was just a suggestion. no one really care about.
05-10-2008, 04:08 PM#8
Vexorian
Pipe says the name hashes size is 512. So, every multiple of 512 increases the time linearly, This doesn't matter at all unless you compare it with locals, locals after all are the only thing faster than globals...