header_utils
Loading...
Searching...
No Matches
Points

Typedefs

template<std::floating_point T>
using ghassanpl::geometry::tvec_span
using ghassanpl::geometry::vec_span

Functions

template<std::ranges::range RANGE, typename T = std::ranges::range_value_t<RANGE>>
constexpr bool ghassanpl::geometry::are_colinear (RANGE const &range, T tolerance=precision_limits< T >::point_on_line_max_distance)
 Checks if the points in range are colinear.

Detailed Description

Typedef Documentation

◆ tvec_span

template<std::floating_point T>
using ghassanpl::geometry::tvec_span

Definition at line 36 of file points.h.

◆ vec_span

using ghassanpl::geometry::vec_span

Definition at line 38 of file points.h.

Function Documentation

◆ are_colinear()

template<std::ranges::range RANGE, typename T = std::ranges::range_value_t<RANGE>>
bool ghassanpl::geometry::are_colinear ( RANGE const & range,
T tolerance = precision_limits<T>::point_on_line_max_distance )
constexpr

Checks if the points in range are colinear.

Definition at line 17 of file points.h.