Vector Math

I’m sort of dabbling in a game project to teach myself some fundamentals, and I think I need vectors now.

I have a library I picked up from the Xith3D website (part of a 3rd party tools package) that is for VectorMath, but I’ve got no documentation to go with it so I’m not sure how to properly use or implement the vector math tools.

I don’t suppose it would be that hard to make vector stuff myself either, I only need 2D vectors.

Basically, I’m asking: Can anyone point me at the documentation for the library I have (VecMath.jar)? Or, can someone tell me where else I can get access to vectors at (does Java include them already?) Or, can someone sort of tell me how I’d go about making a vector class? (Would it have a sepeate variable for each component, or what?)

Sorry if this has been asked before (or it’s so super-noob that it’s insulting). I did a search and came up with nothing, so I figured that asking directly might get better results.

Online javadoc:
http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_3_API/j3dapi/index.html

It’s the javax.vecmath package.

Ahhh, perfect, that’s exactly what I needed. Thank you very much.

Glad I learned Vector Math last semester in Calculus. They told me it would come in handy someday. ;D

I have another question to ask. What are TexCoords used for? I get that their texture coordinates, so, yeah I suppose they would be used for textures, but there doesn’t seem to be any difference between a Tuple and TexCoord, so I don’t see the point.

Are they there so that some other part of Java3D can make use of them specificially?

Well, haha on me. I’ve been using LWJGL, looked at the javadoc today and looky there, they have a vector class too!

I really need to look at the documention on this stuff more often. Is there a downloadable version of the LWJGL doc?

It’s the lwjgl-docs-0.9.zip file on SourceForge