#include <cmath>
#include <string>
#include <sstream>
#include <limits.h>
#include <filesystem>
#include <algorithm>
#include <vector>
#include <regex>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <colour.h>
Go to the source code of this file.
◆ cartesian2Spherical()
Map cartesian coordinates to spherical.
- Parameters
-
- Returns
- glm::vec3 spherical vector.
◆ fixedLengthNumber()
Convert a double to a fixes length std::string.
- Parameters
-
x | the value to convert. |
length | the fixed lenght. |
- Returns
- std::string the fixes length string representation of x.
◆ remove()
◆ sidebyside()
std::string sidebyside |
( |
std::string |
left, |
|
|
std::string |
right, |
|
|
uint8_t |
rjust |
|
) |
| |
Combined two strings (split by newlines) side by side.
- Parameters
-
left | the strings to place on the left. |
right | the strings to place on the right. |
rjust | the start of the right hand strings. |
- Returns
- std::string the combined strings.
◆ spherical2cartesian()
convert spherical coordinates to cartesian coordinates.
- Parameters
-
rthetaphi | the spherical vector. |
- Returns
- glm::vec3 the cartesian vector.
◆ split()
Split a std::string by a std::regex token.
- Parameters
-
str | the std::string to split. |
delim | the std::regex delimiter. |
- Returns
- std::vector<std::string> the substrings split on delim.
◆ timeStamp()
std::string timeStamp |
( |
| ) |
|
Current timestamp.
- Returns
- std::string the timestamp string.
◆ keyCodes
String name for a GLFW_KEY index.
◆ sfoavAtoms
A set of atoms spelling SFOAV to display during loading.