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

#include "../Common.h"


int BH_LineFromPoints(const float a[2],
                      const float b[2],
                      float out[3]);


float BH_LineDistance(const float line[3],
                      const float point[2]);


void BH_LineClosestPoint(const float line[3],
                         const float point[2],
                         float out[2]);


#endif /* BH_MATH_LINE_H */