liblashgame

Pathfinder and path decision making library for 2D tile game
git clone git://holbrook.no/liblashgame.git
Info | Log | Files | Refs

normalizequadrantradians.c (290B)


      1 // normalize quadrant radians
      2 
      3 #include "../lash_game_standard.h"
      4 #include <stdlib.h>
      5 #include <stdio.h>
      6 
      7 int main(int argc, char *argv[]) {
      8 	if (argc < 2) {
      9 		printf("Usage: %s rads\n", argv[0]);
     10 		return 1;
     11 	}
     12 	
     13 	printf("%f\n", lash_normalizeQuadrantRadians(atof(argv[1])));
     14 	return 0;
     15 }