Volumes/include/LinAlg/plane.h
Karl-Wilfried Zimmer 40452a009b snap
2024-08-18 21:57:24 +02:00

24 lines
411 B
C++

//
// Created by nb on 21.07.24.
//
#ifndef VOLSVECS_PLANE_H
#define VOLSVECS_PLANE_H
#include "LinAlg/vector3.h"
namespace LinAlg {
class Plane {
public:
Plane(const Vector3 &a, const Vector3 &b, const Vector3 &c) : _entries{a, b - a, c - a} {};
Vector3 getNormal();
virtual ~Plane() = default;
private:
Vector3 _entries[3];
};
}
#endif //VOLSVECS_PLANE_H