Nameless Engine
Loading...
Searching...
No Matches
Plane.h
1
#pragma once
2
3
// Custom.
4
#include "math/GLMath.hpp"
5
6
namespace
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
}
ne::Plane
Definition:
Plane.h:8
ne::Plane::distanceFromOrigin
float distanceFromOrigin
Definition:
Plane.h:33
ne::Plane::Plane
Plane()=default
ne::Plane::normal
glm::vec3 normal
Definition:
Plane.h:30
ne::Plane::isPointBehindPlane
bool isPointBehindPlane(const glm::vec3 &point) const
Definition:
Plane.cpp:10
src
engine_lib
public
misc
shapes
Plane.h
Generated by
1.9.5