about summary refs log tree commit diff
senseless directions
----------------------

convert a series of cardinal directions into a measure of degree
because we all know that NWWWNNNWWN is a sensible way to direct.

#INCLUDE "senseless.h"
	senseless directions can be used as a single-header library. you'll
	want the file called senseless.h in the root of the repository. then
	just include it in your code and you're good.

INTERFACE
	double senseless_directions(const char *directions, size_t length);
		takes a string of [NnEeSsWw] characters and produces a
		measure of degree.

MAKEFILE
	if you have make installed you can use the following subcommands. if
	make is not installed, you can look at the Makefile for the commands
	that are run.

	test
		compile and run the tests.

	clean
		remove artifacts created by the makefile