path-info.js
// Get index of current position on this path
Get index of current position on this path
Get index of current position on this path
indexOf(pos) {
		pos = WorldPosition(pos);
		return _.findIndex(this.path, function(square) {
			return pos.xx === square.xx && pos.yy === square.yy;
		});
	}
indexOf ( pos ) { pos = WorldPosition ( pos ) ; return _ . findIndex ( this . path , function ( square ) { return pos . xx === square . xx && pos . yy === square . yy ; } ) ; }
Get index of current position on this path
Get index of current position on this path