Nameless Engine
Loading...
Searching...
No Matches
Cone.h
1#pragma once
2
3// Custom.
4#include "math/GLMath.hpp"
5#include "misc/shapes/Plane.h"
6
7namespace ne {
9 struct Cone {
11 Cone() = default;
12
21 Cone(const glm::vec3& location, float height, const glm::vec3& direction, float bottomRadius);
22
30 bool isBehindPlane(const Plane& plane) const;
31
33 glm::vec3 location = glm::vec3(0.0F, 0.0F, 0.0F);
34
36 float height = 1.0F;
37
39 glm::vec3 direction = glm::vec3(1.0F, 0.0F, 0.0F);
40
42 float bottomRadius = 1.0F;
43 };
44}
Definition: Cone.h:9
glm::vec3 direction
Definition: Cone.h:39
glm::vec3 location
Definition: Cone.h:33
Cone()=default
float bottomRadius
Definition: Cone.h:42
float height
Definition: Cone.h:36
bool isBehindPlane(const Plane &plane) const
Definition: Cone.cpp:12
Definition: Plane.h:8