Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2021. The current version is 1.89.0.
Interpolate point on a cartesian segment.
template<typename CalculationType, typename DistanceStrategy> class strategy::line_interpolate::cartesian { // ... };
|
Parameter |
Default |
Description |
|---|---|---|
|
typename CalculationType |
void |
numeric type for calculation (e.g. high precision); if void then it is extracted automatically from the coordinate type and (if necessary) promoted to floating point |
|
typename DistanceStrategy |
distance::pythagoras<CalculationType> |
The underlying point-point distance strategy |
|
Function |
Description |
Parameters |
Returns |
|---|---|---|---|
|
template<typename Point, typename Fraction, typename Distance> void apply(Point const & p0, Point const & p1, Fraction const & fraction, Point & p, Distance const & )
|
Point const &: p0: Point const &: p1: Fraction const &: fraction: Point &: p: Distance const &: : |
#include <boost/geometry/strategies/cartesian/line_interpolate.hpp>