20 #ifndef ANTKEEPER_GEOM_PRIMITIVES_HYPERPLANE_HPP
21 #define ANTKEEPER_GEOM_PRIMITIVES_HYPERPLANE_HPP
26 namespace primitives {
34 template <
class T, std::
size_t N>
86 using namespace primitives;
constexpr T dot(const quaternion< T > &a, const quaternion< T > &b) noexcept
Calculates the dot product of two quaternions.
T offset(T longitude)
Calculates the UTC offset at a given longitude.
constexpr hyperplane() noexcept=default
Constructs a hyperplane.
T constant
Hyperplane constant.
constexpr T distance(const vector_type &point) const noexcept
Calculates the signed distance from the hyperplane to a point.
constexpr hyperplane(const vector_type &normal, const vector_type &offset) noexcept
Constructs a hyperplane given a normal and an offset point.
vector_type normal
Hyperplane normal.