#include <TinyKeepDev.hpp>
|
| template<int nbRects> |
| static std::vector< Rectf > | generateRects (float radius, float maxRectRatio=0.5, std::pair< float, float > radiusRatios={0.1f, 1.f}, uint64_t seed=0) |
| |
| template<int its = 50> |
| static void | relaxRects (std::vector< Rectf > &rects) |
| |
| static std::vector< Linef > | bowyerWatson (const std::vector< Rectf > &rects) |
| |
| static std::vector< Linef > | mst (const std::vector< Linef > &edges) |
| |
| static std::vector< Linef > | shortenLine (const std::vector< Rectf > &rects, const std::vector< Linef > &edges) |
| |
◆ bowyerWatson()
| static std::vector< Linef > TinyKeepDev::bowyerWatson |
( |
const std::vector< Rectf > & |
rects | ) |
|
|
inlinestatic |
◆ generateRects()
template<int nbRects>
| static std::vector< Rectf > TinyKeepDev::generateRects |
( |
float |
radius, |
|
|
float |
maxRectRatio = 0.5, |
|
|
std::pair< float, float > |
radiusRatios = {0.1f, 1.f}, |
|
|
uint64_t |
seed = 0 |
|
) |
| |
|
inlinestatic |
- Template Parameters
-
- Parameters
-
| radius | |
| maxRectRatio | \in ]0,1] |
| radiusRatios | \in ]0,2] |
| seed | |
- Returns
- Rects
◆ mst()
| static std::vector< Linef > TinyKeepDev::mst |
( |
const std::vector< Linef > & |
edges | ) |
|
|
inlinestatic |
◆ relaxRects()
template<int its = 50>
| static void TinyKeepDev::relaxRects |
( |
std::vector< Rectf > & |
rects | ) |
|
|
inlinestatic |
◆ shortenLine()
| static std::vector< Linef > TinyKeepDev::shortenLine |
( |
const std::vector< Rectf > & |
rects, |
|
|
const std::vector< Linef > & |
edges |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: