VoxelEngine
 
Loading...
Searching...
No Matches
Plane.h
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace 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
Definition Plane.h:6