#include <Plane.h>
Plane represented by a normal and a distance.
◆ Plane() [1/2]
Creates uninitialized plane.
◆ Plane() [2/2]
ne::Plane::Plane |
( |
const glm::vec3 & |
normal, |
|
|
const glm::vec3 & |
location |
|
) |
| |
Initializes the plane.
- Parameters
-
normal | Plane's normal (expected to be of unit length). |
location | Location of a point that lies on the plane. |
◆ isPointBehindPlane()
bool ne::Plane::isPointBehindPlane |
( |
const glm::vec3 & |
point | ) |
const |
Tells if the point is fully behind (inside the negative halfspace of) a plane.
- Parameters
-
- Returns
true
if the point is fully behind the plane, false
otherwise.
◆ distanceFromOrigin
float ne::Plane::distanceFromOrigin = 0.0F |
Distance from the origin to the nearest point on the plane.
◆ normal
glm::vec3 ne::Plane::normal = 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/Plane.h
- src/engine_lib/private/misc/shapes/Plane.cpp