LoginLogin

GGLib

Root / Submissions / [.]

PetrifiedLasagnaCreated:
Download:9K3KQPKF
Version:1.0.0Size:26.9 KB

General Geometry Library

GGLib is a library that aims to give programmers a comprehensive set of math related functions. The current version of GGLib comes with four different groups of functions. These include: -Geometry -Trigonometry -Vector -Collision Also, every function has comments and an example program that provide insight into what each function can be used for. If you have any questions about how to use a function, or have a suggestion for a function you would like to see, feel free to leave a comment and I will answer it as soon as I notice it (<24 hours when active).

Instructions:

To use the library copy it to the project that you want to include it in, load it into one of the available program slots, and call USE # to activate it. To view the example program just open it as you would any other program in the "view projects" menu.

Looks like a lot of work went into this.

Replying to:haloopdy
Looks like a lot of work went into this.
Programming it, definitely. Most of it, though, was just knowledge that I accumulated through time doing what I love. :)

(You can actually just do USE "PRG1:GGLIB" (this is a secret feature of USE))

Replying to:12Me21
(You can actually just do USE "PRG1:GGLIB" (this is a secret feature of USE))
Oh, that's an interesting secrete. It makes you wonder why they don't document all the overloads (if you will) of the functions.

shouldn't points go counterclockwise? that's how it works in general math

Replying to:chicken
shouldn't points go counterclockwise? that's how it works in general math
Really? The way I am determining the wind order is OpenGL style with the "shoelace" algorithm. I take the points and I take it from there. Regardless of whether you correct the y-axis (as I did in the example program) or not, you get the answer you expect to see based on the points. So I am a little confused by what you mean. Since clockwise/counter-clockwise is relative to how a clock goes around. If you could point me towards a page or something explaining it that would be great.

Replying to:chicken
shouldn't points go counterclockwise? that's how it works in general math
meh, i was tired and confused, ignore it please

Replying to:chicken
shouldn't points go counterclockwise? that's how it works in general math
haha, I spent a portion of my day questioning what I thought was the definition of clockwise :3 I can recount many a time when I have done things on the notion of being tired *cough*http://smilebasicsource.com/forum?ftid=1064*cough*. Well I hope you enjoy the library!

Looks very useful!