aboutsummaryrefslogtreecommitdiff
path: root/include/BH/Math/Plane.h
blob: 6d7e1d63b54090d5586f63b64aac6a8a06178e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 */