Skip to main content

angle

Discworld driver help

angle

Name

angle - return the angle between two vectors

Synopsis

float angle( vector v1, vector v2 );

Description

"vector" is not actually a type in LPC. It is used here to represent an array of ints and/or floats.

angle( v1, v2 ) will return the angle between the vectors `v1' and `v2'.

`v1' and `v2' must be of the same size, otherwise a runtime is produced.

See also

vectors, norm(), dotprod(), distance()