8 #include <glm/gtc/type_ptr.hpp> 9 #include <mos/sim/ray.hpp> 15 auto text(
const std::string &path) -> std::string;
18 auto split(
const std::string &s,
char delim,
19 std::vector<std::string> &elems) -> std::vector<std::string> &;
21 auto split(
const std::string &s,
char delim) -> std::vector<std::string>;
23 auto jsonarray_to_mat4(
const nlohmann::json &array) -> glm::mat4;
24 auto jsonarray_to_vec3(
const nlohmann::json &array) -> glm::vec3;
25 auto jsonarray_to_quat(
const nlohmann::json &array) -> glm::quat;
26 auto jsonarray_to_vec4(
const nlohmann::json &array) -> glm::vec4;
29 auto position(
const glm::mat4 &mat) -> glm::vec3;
33 auto un_project(
const glm::vec2 &position,
34 const glm::mat4 &view,
35 const glm::mat4 &projection,
38 auto hex_color(
const int hex) -> glm::vec4;
Ray for ray testing.
Definition: ray.hpp:7