3#include "egg/math/Vector.hh"
25 d = -(normal.
dot(point));
29 [[nodiscard]]
bool testPoint(
const Vector3f &point)
const {
30 return d +
n.
dot(point) <= 0.0f;
Represents a plane in 3D space, expressed with n.dot(x) = d for point x on the plane.
f32 d
Negated dot product. n.dot(x) = d => n.dot(x) - d = 0.
f32 dot(const Vector3f &rhs) const
The dot product between two vectors.