Go to the source code of this file.
|
| 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.
|
| 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.
|
◆ CalculateDirectionalPresetIndex()
| 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.
- Parameters
-
| distance | The distance of the event. |
| directionCount | The number of directions of the matrix. |
| params | The parameters of the event. |
- Returns
- The direction, or the direction of the parameters when the event is not directional.
- Ghidra address:
- EAR: 0x10004230
◆ CalculateDirectionSector()
| 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.
- Parameters
-
| first | The first direction of the range. |
| last | The last direction of the range. |
| x | The position across. |
| z | The position ahead. |
- Returns
- The direction.
- Ghidra address:
- EAR: 0x1000483c