Hello everyone,

here are some additional vector functions, that can be used with the native Gamestudio VECTORs.

The code includes:
* distance between lines/line segments
* distance between points and lines/line segments
* intersections of planes and lines/line segments
* intersections of spheres and lines/line segments
* vector projection, scalar projection

There is also a dot product function that returns a float instead of a var, in order to handle vectors with larger magnitudes. (Only drawback is, that int<->float conversion is pretty slow. Maybe somebody has a better idea?)

On a side note: The sphere-line intersection function does NOT compute the intersection points.

You can download the code here: gsvec.zip
All functions and parameters are documented in the header file.
A simple demo script (main.c) is included.
The code was tested with lite-C 1.70.1.

Perhaps somebody can make use of it.