liblashgame

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

getquadrant.c (262B)


      1 // getquadrant
      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("%d\n", lash_getQuadrant(atof(argv[1])));
     14 	return 0;
     15 }