|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
noexcept |
Fully explicit weighted centroid for arbitrary point types.
Neither PositionCarrying nor any field convention is required. Both the position and the weight are extracted via caller-supplied callables. Use this overload for Nexus QueryResult spans, CV observation structs, Eigen column references, or any type that does not follow the vertex convention.
Falls back to the zero vector when total weight is zero or the span is empty.
| T | Element type. No concept constraint. |
| PosFn | Callable: const T& -> glm::vec3 (or convertible). |
| WeightFn | Callable: const T& -> float (or convertible). |
| pts | Non-owning span of elements. |
| pos | Position extractor. |
| weight | Weight extractor. |
Definition at line 107 of file Morphology.hpp.
References weight.