diff --git a/src/vector.rs b/src/vector.rs index b71c65e..055c7e0 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -409,6 +409,10 @@ macro_rules! impl_vector_default { fn product(self) -> S where S: Mul { fold_array!(mul, { $(self.$field),+ }) } + + fn is_finite(&self) -> bool where S: BaseFloat { + $(self.$field.is_finite())&&+ + } } impl Zero for $VectorN {