|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
noexcept |
Scalar-weighted centroid of a PositionCarrying span.
Each point contributes weight(point) to the measure. Suitable for mesh vertices weighted by deformation magnitude, particles weighted by energy (size / thickness field), or any domain-specific scalar.
Falls back to the zero vector when total weight is zero or the span is empty.
| T | Any type satisfying PositionCarrying. |
| WeightFn | Callable: const T& -> float (or any float-convertible type). |
| pts | Non-owning span of points. |
| weight | Per-point weight callable. |
Definition at line 70 of file Morphology.hpp.
References weight.