CoefficientError
Defined in: mod.rs:99
Available on crate feature
alloconly.
pub enum CoefficientError { IndexOutOfRange { degree: usize, order: usize }, NonFinite { degree: usize, order: usize }, InvalidConstant(&'static str),}Why a coefficient set handed to
SphericalHarmonicCoefficients::from_normalized_coefficients was
rejected.
Variants
Section titled “Variants”IndexOutOfRange
Section titled “IndexOutOfRange”degree: usize order: usize
m > n or n > max_degree.
NonFinite
Section titled “NonFinite”degree: usize order: usize
A coefficient was NaN or infinite.
InvalidConstant
Section titled “InvalidConstant”InvalidConstant(&‘static str)
gm or radius was not a finite positive number, or max_degree
exceeded MAX_DEGREE.