Nameless Engine
Loading...
Searching...
No Matches
Plane.h
1#pragma once
2
3// Custom.
4#include "math/GLMath.hpp"
5
6namespace ne {
8 struct Plane {
10 Plane() = default;
11
18 Plane(const glm::vec3& normal, const glm::vec3& location);
19
27 bool isPointBehindPlane(const glm::vec3& point) const;
28
30 glm::vec3 normal = glm::vec3(0.0F, 0.0F, 0.0F);
31
33 float distanceFromOrigin = 0.0F;
34 };
35}
Definition: Plane.h:8
float distanceFromOrigin
Definition: Plane.h:33
Plane()=default
glm::vec3 normal
Definition: Plane.h:30
bool isPointBehindPlane(const glm::vec3 &point) const
Definition: Plane.cpp:10