Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
Utils.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace shkyera {
6
7float toRadians(float degrees);
8
9float toDegrees(float radians);
10
11float angleAroundAxis(const glm::vec3& v1, const glm::vec3& v2, const glm::vec3& axis);
12
13glm::vec3 angleAxisRotation(const glm::vec3& eulerAngles, const glm::vec3& axis, float angle);
14
15glm::vec3 eulerAnglesFromRotationMatrix(const glm::mat3& rotationMat);
16
17} // namespace shkyera
Definition Asset.hpp:6
glm::vec3 eulerAnglesFromRotationMatrix(const glm::mat3 &rotationMat)
Definition Utils.cpp:51
float toRadians(float degrees)
Definition Utils.cpp:13
float angleAroundAxis(const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &axis)
Definition Utils.cpp:21
float toDegrees(float radians)
Definition Utils.cpp:17
glm::vec3 angleAxisRotation(const glm::vec3 &eulerAngles, const glm::vec3 &axis, float angle)
Definition Utils.cpp:43