pub fn minmax_attribute<'a, T: PrimitiveType + MinMax + Copy, B: BorrowedBuffer<'a>>(
buffer: &'a B,
attribute: &PointAttributeDefinition,
) -> Option<(T, T)>
Expand description
Returns the minimum and maximum value of the given point attribute
within buffer
. Returns None
if buffer
contains no points. For
vector PrimitiveType
s such as Vector3<f64>
, the component-wise minimum and maximum is applied.
ยงPanics
If attribute
is not part of the point layout of buffer
, or the attribute within buffer
is not of type T