emlabcpp
modern opinionated embedded C++ library
line.h File Reference
#include "./point.h"
#include "./vector.h"
#include <array>
+ Include dependency graph for line.h:

Go to the source code of this file.

Namespaces

 emlabcpp
 MIT License.
 

Typedefs

template<std::size_t N>
using emlabcpp::line = std::array< point< N >, 2 >
 

Functions

template<std::size_t N>
constexpr float emlabcpp::distance_of (line< N > const &l, point< N > const &p)
 
template<std::size_t N>
constexpr float emlabcpp::distance_of (point< N > const &p, line< N > const &line)