3 #include <unordered_set>
6 #include <glm/gtc/quaternion.hpp>
7 #include <glm/gtx/intersect.hpp>
16 static bool intersectRectangle(
const Ray* ray,
const glm::vec3& p,
const glm::vec3& q,
const glm::vec3& r,
const glm::vec3& s);
17 static bool intersectRectangle(
const Ray* ray,
const glm::vec3& p,
const glm::vec3& q,
const glm::vec3& r,
const glm::vec3& s, glm::vec3& intersection);
20 static glm::vec3 plane(
const glm::vec3& p,
const glm::vec3& q,
const glm::vec3& r);
22 static float angleBetween(
const glm::vec3& u,
const glm::vec3& v);
24 static float angleBetweenVectorPlane(
const glm::vec3& u,
const glm::vec3& v);
26 static glm::quat quatFromTo(
const glm::vec3& u,
const glm::vec3& v);
29 static glm::quat quatFromViewDirection(
const glm::vec3& dir);
36 static T safeNormalize(
const T& value);
39 #include "geometryhelper.inl"
Definition: worldobject.h:43
Definition: geometryhelper.h:13