emlabcpp
modern opinionated embedded C++ library
point.h File Reference
#include "../../range.h"
#include "./vec_point_base.h"
#include "./vector.h"
+ Include dependency graph for point.h:

Go to the source code of this file.

Classes

class  emlabcpp::point< N >
 Class implementing multidimensional point in coordinate system of dimension N. More...
 

Namespaces

 emlabcpp
 MIT License.
 

Functions

template<std::size_t N>
constexpr point< N > emlabcpp::point_cast (vector< N > const &v)
 
template<std::size_t N>
constexpr vector< N > emlabcpp::vector_cast (point< N > const &p)
 
template<std::size_t N>
constexpr point< N > emlabcpp::operator* (point< N > a, point< N > const &b)
 Multiplication of points multiplies each coordinate of A by coordinate of B on same dimension. More...
 
template<std::size_t N>
constexpr vector< N > emlabcpp::operator- (point< N > a, point< N > const &b)
 Returns a result of subtraction of A from B, viz -= operator. More...
 
template<std::size_t N>
constexpr point< N > emlabcpp::operator+ (point< N > a, vector< N > const &b)
 Returns a result of addition a to b, viz += operator. More...
 
template<std::size_t N>
constexpr point< N > emlabcpp::operator- (point< N > a, vector< N > const &b)
 Returns a result of subtraction a to b, viz += operator. More...
 
template<std::size_t N>
constexpr float emlabcpp::distance_of (point< N > const &a, point< N > const &b)
 Returns euclidian distance of point A from point B. More...
 
template<std::size_t N>
constexpr float emlabcpp::point_angle (point< N > const &a, point< N > const &b)
 
template<std::size_t N>
std::vector< point< N > > emlabcpp::lineary_interpolate_path (std::vector< point< N > > const &ipath, float d_step)
 
template<std::size_t N>
constexpr float emlabcpp::axis_projection_distance (point< N > const &a, vector< N > const &axis_direction)
 Function to calculate distance of projection of point A. More...