#include <Cone.h>
◆ Cone() [1/2]
Creates uninitialized cone.
◆ Cone() [2/2]
| ne::Cone::Cone |
( |
const glm::vec3 & |
location, |
|
|
float |
height, |
|
|
const glm::vec3 & |
direction, |
|
|
float |
bottomRadius |
|
) |
| |
Initializes the cone.
- Parameters
-
| location | Location of cone's tip. |
| height | Height of the cone. |
| direction | Direction unit vector from cone's tip. |
| bottomRadius | Radius of the bottom part of the cone. |
◆ isBehindPlane()
| bool ne::Cone::isBehindPlane |
( |
const Plane & |
plane | ) |
const |
Tells if the cone is fully behind (inside the negative halfspace of) a plane.
- Parameters
-
- Returns
true if the cone is fully behind the plane, false if intersects or in front of it.
◆ bottomRadius
| float ne::Cone::bottomRadius = 1.0F |
Radius of the bottom part of the cone.
◆ direction
| glm::vec3 ne::Cone::direction = glm::vec3(1.0F, 0.0F, 0.0F) |
Direction unit vector from cone's tip.
◆ height
| float ne::Cone::height = 1.0F |
◆ location
| glm::vec3 ne::Cone::location = glm::vec3(0.0F, 0.0F, 0.0F) |
The documentation for this struct was generated from the following files:
- src/engine_lib/public/misc/shapes/Cone.h
- src/engine_lib/private/misc/shapes/Cone.cpp