fix zeroes

This commit is contained in:
Quaternions 2024-09-26 15:26:18 -07:00
parent 8d97ffba92
commit e6cd239dcb

View File

@ -10,7 +10,7 @@ macro_rules! impl_zeroes{
let a2pos=match a2.cmp(&Self::ZERO){ let a2pos=match a2.cmp(&Self::ZERO){
Ordering::Greater=>true, Ordering::Greater=>true,
Ordering::Equal=>return ArrayVec::from_iter(Self::zeroes1(a0,a1).into_iter()), Ordering::Equal=>return ArrayVec::from_iter(Self::zeroes1(a0,a1).into_iter()),
Ordering::Less=>true, Ordering::Less=>false,
}; };
let radicand=a1*a1-a2*a0*4; let radicand=a1*a1-a2*a0*4;
match radicand.cmp(&<Self as core::ops::Mul>::Output::ZERO){ match radicand.cmp(&<Self as core::ops::Mul>::Output::ZERO){