vectors |
Discworld driver help |
vectors |
Name
vector functions - ways of working with vectors.
Synopsis
float norm( vector v );
float dotprod( vector v1, vector v2 );
float distance( vector v1, vector v2 );
float angle( vector v1, vector v2 );
Description
The above four efuns all work on vectors. See the help files for each of them to see what they do. "vector" is not actually a type in LPC. It is used here to represent an array of ints and/or floats.