diff options
Diffstat (limited to 'include/BH/Math/Line.h')
| -rw-r--r-- | include/BH/Math/Line.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/BH/Math/Line.h b/include/BH/Math/Line.h new file mode 100644 index 0000000..401e9be --- /dev/null +++ b/include/BH/Math/Line.h @@ -0,0 +1,23 @@ +#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 */ |
