forked from elsewhat/gtav-mod-scene-director
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.h
36 lines (27 loc) · 786 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
THIS FILE IS A PART OF GTA V SCRIPT HOOK SDK
http://dev-c.com
(C) Alexander Blade 2015
*/
#pragma once
#include <string>
#include <vector>
#include <sstream>
#include "..\..\inc\types.h"
#include "..\..\inc\natives.h"
// returns module load path with trailing slash
std::string GetCurrentModulePath();
std::string roundNumber(float number);
std::string actionInputString(int maxLength);
DWORD actionInputDword();
float actionInputFloat();
class StringUtils {
public:
static void split(const std::string &s, char delim, std::vector<std::string> &elems);
static std::vector<std::string> split(const std::string &s, char delim);
};
class MathUtils {
public:
static Vector3 rotationToDirection(Vector3 rotation);
static Vector3 crossProduct(Vector3 a, Vector3 b);
};