aboutsummaryrefslogtreecommitdiff
path: root/include/BH/Math/Plane.h
blob: ba4d29ebb882ac96f946b823165dd9e8105ba2f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef BH_MATH_PLANE_H
#define BH_MATH_PLANE_H

#include "../Common.h"


int BH_PlaneFromPoints(const float a[3],
                       const float b[3],
                       const float c[3],
                       float out[4]);


float BH_PlaneDistance(const float plane[4],
                       const float point[3]);


void BH_PlaneClosestPoint(const float plane[4],
                          const float point[3],
                          float out[3]);


#endif /* BH_MATH_PLANE_H */