2-D Vectors

Posted by darkpulsaromega on Aug. 10, 2006, 11:45 p.m.

My first blog entry, yay!

An idea I had for a script: two-dimentional vectors. I wrote the scripts a few months ago (yeah, months) and I decided to go back to it and check it out. I guess I should have expected this: The script was crap. In a complex operation, it would check to see if the same vector existed four times. I decided to rewrite the script with the assumption that the user would be smart enough to not try to perform a dot product operation with a vector that doesn't exist. If they aren't smart enough to avoid that, then they shouldn't use the script.

Anyways, I'm planning on making an example program using this script, but I'll release the script now and worry about the example later.

Here's the file, enjoy:

2DVectors.gml

Comments

Requiem 18 years, 3 months ago

I see.

Now, make a script for 3D Vectors.

Hootiehoo 18 years, 2 months ago

LOL?

darkpulsaromega 18 years, 2 months ago

It shouldn't be too hard, just a little modification of the 2D vector script and it will work perfectly. I don't really need to do it though, Yourself already has a script for that.

Yourself's 3D Vector Script