emlabcpp
modern opinionated embedded C++ library
|
Class implementing multidimensional point in coordinate system of dimension N. More...
#include <point.h>
Public Member Functions | |
constexpr point< N > & | operator+= (vector< N > const &other) |
+= operator adds value of 'i'th coordinate from 'other' to 'this', for all 0 <= i < N More... | |
constexpr point< N > & | operator-= (vector< N > const &other) |
-= operator subtracts value of 'i'th coordinate of 'other' from 'this', for all 0 <= i < N More... | |
~point ()=default | |
![]() | |
constexpr | vec_point_base () noexcept=default |
constexpr | vec_point_base (container cont) noexcept |
constexpr | vec_point_base (T... t) |
constexpr const_iterator | begin () const |
constexpr iterator | begin () |
constexpr const_iterator | end () const |
constexpr iterator | end () |
constexpr float | operator[] (std::size_t i) const |
constexpr float & | operator[] (std::size_t i) |
constexpr point< N > | operator- () const |
constexpr std::size_t | size () const |
constexpr container const & | operator* () const |
Additional Inherited Members | |
![]() | |
using | container = std::array< float, N > |
using | value_type = float |
using | const_iterator = typename container::const_iterator |
using | iterator = typename container::iterator |
![]() | |
static point< N > | make_filled_with (value_type val) |
![]() | |
static constexpr std::size_t | dimensions |
Class implementing multidimensional point in coordinate system of dimension N.
|
default |
|
inlineconstexpr |
+= operator adds value of 'i'th coordinate from 'other' to 'this', for all 0 <= i < N
References emlabcpp::N, and emlabcpp::range().
|
inlineconstexpr |
-= operator subtracts value of 'i'th coordinate of 'other' from 'this', for all 0 <= i < N
References emlabcpp::N, and emlabcpp::range().