coastline 0.0.4
Loading...
Searching...
No Matches
direction.h
Go to the documentation of this file.
1#ifndef COASTLINE_EAR_DIRECTION_H
2#define COASTLINE_EAR_DIRECTION_H
3
4#include <stdint.h>
5
6#include "eventparameters.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
21uint16_t __stdcall CalculateDirectionalPresetIndex(uint32_t distance,
22 uint16_t directionCount,
23 const EarEventParams *params);
24
36uint16_t __stdcall CalculateDirectionSector(uint16_t first, uint16_t last, int32_t x, int32_t z);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif /* COASTLINE_EAR_DIRECTION_H */
uint16_t __stdcall CalculateDirectionSector(uint16_t first, uint16_t last, int32_t x, int32_t z)
Find the sector of a range of directions a position lies in, the directions turning from the front.
uint16_t __stdcall CalculateDirectionalPresetIndex(uint32_t distance, uint16_t directionCount, const EarEventParams *params)
Find the direction of an event among the directions of a directional matrix.
The parameters of an event, as the game passes them to MixEvent and MoveEvent.
Definition eventparameters.h:52