Update src/geometry/scale.rs
Simplified code Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
parent
b91ead7971
commit
de41c42af7
|
@ -187,7 +187,7 @@ impl<T: Scalar, const D: usize> Scale<T, D> {
|
|||
T: ClosedDiv + One + Zero,
|
||||
{
|
||||
for i in 0..D {
|
||||
if self.vector[(i, 0)] == T::zero() {
|
||||
if self.vector[i] == T::zero() {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue