kodi
InputTranslator.h
1 /*
2  * Copyright (C) 2018-2024 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "InputTypes.h"
12 
13 namespace KODI
14 {
15 namespace INPUT
16 {
18 {
19 public:
35  static CARDINAL_DIRECTION VectorToCardinalDirection(float x, float y);
36 
52  static INTERCARDINAL_DIRECTION VectorToIntercardinalDirection(float x, float y);
53 };
54 } // namespace INPUT
55 } // namespace KODI
static INTERCARDINAL_DIRECTION VectorToIntercardinalDirection(float x, float y)
Get the closest cardinal or intercardinal direction to the given vector.
Definition: InputTranslator.cpp:31
Definition: InputTranslator.h:17
Definition: AudioDecoder.h:18
static CARDINAL_DIRECTION VectorToCardinalDirection(float x, float y)
Get the closest cardinal direction to the given vector.
Definition: InputTranslator.cpp:17