23 lines
400 B
C
23 lines
400 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
|