TGLTLSBFSSP: routines
 
Various boring routines and algorithms that may be of use.
 

Misc Algorithms
Fast Random Number Generator

Vectors
Distance between two points
Dot Product
Cross Product

3D
contribution by Joel Holdsworth: 3D projection
Rotations (and intro to sine and cosine)


References:
3DICA Programming Tutourial: http://www.foxfiber.net/3dica/3dica.htm
A good tutourial on Vectors, 3D, Geometry, Polygons, Sorting, Shading, and others. Well worth a look.