diff options
| author | Marc Gilleron <marc.gilleron@gmail.com> | 2018-01-23 00:24:23 +0100 |
|---|---|---|
| committer | Marc Gilleron <marc.gilleron@gmail.com> | 2018-01-23 00:24:23 +0100 |
| commit | 4f4bb8deff008861ced55b14fcd8b8f4d3a697e8 (patch) | |
| tree | b2d25347fc48d250bff5e6d011159cbcd918b63f /include/core/String.hpp | |
| parent | 411d2f6d1fddbaa0b779ae5f5aa93e0175f8112c (diff) | |
| download | redot-cpp-4f4bb8deff008861ced55b14fcd8b8f4d3a697e8.tar.gz | |
String and math fixes
- Added missing static String constructors
- Implemented String operator for math types
- Added XYZ and YXZ euler angles methods
- Fixed wrong det checks in Basis
- Fixed operator Quat in Basis
Diffstat (limited to 'include/core/String.hpp')
| -rw-r--r-- | include/core/String.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/core/String.hpp b/include/core/String.hpp index f03c997..de65f3c 100644 --- a/include/core/String.hpp +++ b/include/core/String.hpp @@ -37,6 +37,14 @@ public: ~String(); + static String num(double p_num, int p_decimals = -1); + static String num_scientific(double p_num); + static String num_real(double p_num); + static String num_int64(int64_t p_num, int base = 10, bool capitalize_hex = false); + static String chr(godot_char_type p_char); + static String md5(const uint8_t *p_md5); + static String hex_encode_buffer(const uint8_t *p_buffer, int p_len); + wchar_t &operator[](const int idx); wchar_t operator[](const int idx) const; |
