VoxelEngine
Loading...
Searching...
No Matches
Plane.h
1
#pragma once
2
3
#include <glm/glm.hpp>
4
5
namespace
engine {
6
struct
Plane
{
7
Plane
(glm::vec3 normal,
float
distance) {
8
float
len = glm::length(normal);
9
this->normal = normal / len;
10
this->distance = distance / len;
11
}
12
glm::vec3 normal{0.0f, 1.0f, 0.0f};
13
float
distance{0.0f};
14
};
15
}
// namespace engine
engine::Plane
Definition
Plane.h:6
src
physics
Plane.h
Generated by
1.9.8