Antkeeper
0.0.1
|
n-dimensional plane. More...
#include <hyperplane.hpp>
Public Types | |
using | vector_type = math::vector< T, N > |
Vector type. More... | |
Public Member Functions | |
constexpr | hyperplane () noexcept=default |
Constructs a hyperplane. More... | |
constexpr | hyperplane (const vector_type &normal, float constant) noexcept |
Constructs a hyperplane given a normal and constant. More... | |
constexpr | hyperplane (const vector_type &normal, const vector_type &offset) noexcept |
Constructs a hyperplane given a normal and an offset point. More... | |
constexpr T | distance (const vector_type &point) const noexcept |
Calculates the signed distance from the hyperplane to a point. More... | |
Public Attributes | |
vector_type | normal |
Hyperplane normal. More... | |
T | constant |
Hyperplane constant. More... | |
n-dimensional plane.
T | Real type. |
N | Number of dimensions. |
Definition at line 35 of file hyperplane.hpp.
using geom::primitives::hyperplane< T, N >::vector_type = math::vector<T, N> |
Vector type.
Definition at line 38 of file hyperplane.hpp.
|
constexprdefaultnoexcept |
Constructs a hyperplane.
|
inlineconstexprnoexcept |
Constructs a hyperplane given a normal and constant.
normal | Plane normal. |
constant | Plane constant. |
Definition at line 55 of file hyperplane.hpp.
|
inlineconstexprnoexcept |
Constructs a hyperplane given a normal and an offset point.
normal | Plane normal. |
offset | Offset from the origin. |
Definition at line 66 of file hyperplane.hpp.
|
inlineconstexprnoexcept |
Calculates the signed distance from the hyperplane to a point.
point | Input point. |
point
. Definition at line 78 of file hyperplane.hpp.
T geom::primitives::hyperplane< T, N >::constant |
Hyperplane constant.
Definition at line 44 of file hyperplane.hpp.
vector_type geom::primitives::hyperplane< T, N >::normal |
Hyperplane normal.
Definition at line 41 of file hyperplane.hpp.