summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/geometricPlane.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/geometricPlane.h b/lib/geometricPlane.h
index 3b1a0e4..d4b803d 100644
--- a/lib/geometricPlane.h
+++ b/lib/geometricPlane.h
@@ -16,13 +16,17 @@ public:
template<typename PositionType> class GeometricPlaneT : public GeometricPlane {
public:
+ GeometricPlaneT() = default;
+
+ GeometricPlaneT(PositionType origin, Normal3D normal) : origin(std::move(origin)), normal(normal) { }
+
struct DistAndPosition {
PositionType::value_type dist;
PositionType position;
};
- PositionType origin;
- Normal3D normal;
+ PositionType origin {};
+ Normal3D normal {};
[[nodiscard]] inline PlaneRelation
getRelation(PositionType point) const