Volumes/include/LinAlg/plane.h

24 lines
411 B
C
Raw Permalink Normal View History

2024-07-21 19:12:47 +02:00
//
// Created by nb on 21.07.24.
//
#ifndef VOLSVECS_PLANE_H
#define VOLSVECS_PLANE_H
#include "LinAlg/vector3.h"
2024-08-18 21:57:24 +02:00
namespace LinAlg {
class Plane {
2024-07-21 19:12:47 +02:00
public:
2024-08-18 21:57:24 +02:00
Plane(const Vector3 &a, const Vector3 &b, const Vector3 &c) : _entries{a, b - a, c - a} {};
2024-07-21 19:12:47 +02:00
Vector3 getNormal();
2024-08-18 21:57:24 +02:00
virtual ~Plane() = default;
2024-07-21 19:12:47 +02:00
private:
Vector3 _entries[3];
};
}
#endif //VOLSVECS_PLANE_H