Calculate length and width based on inertia axes (PCA alignment).
Value
If
xis a single matrix: returns a numeric vector c(length, width)If
xis a list: returns a list of numeric vectorsIf
xis a tibble: returns a list of numeric vectors extracted from coo column
Details
Length is defined as the range along the major inertia axis (largest variance). Width is defined as the range along the minor inertia axis (smallest variance). Shape is first centered and aligned using SVD before computing ranges.
Note: Returns a vector, not a scalar, so cannot be used with measure().
Use get_length(), get_width(), or get_elongation() for scalar measurements.
