Fixed code formatting
This commit is contained in:
parent
a64417870b
commit
82b8ac84a0
|
@ -233,13 +233,16 @@ impl<T: Scalar, const D: usize> Scale<T, D> {
|
|||
where
|
||||
T: ClosedDiv + One + Zero,
|
||||
{
|
||||
return self.vector.map(|e| {
|
||||
return self
|
||||
.vector
|
||||
.map(|e| {
|
||||
if e != T::zero() {
|
||||
return T::one() / e;
|
||||
} else {
|
||||
return T::zero();
|
||||
}
|
||||
}).into();
|
||||
})
|
||||
.into();
|
||||
}
|
||||
|
||||
/// Converts this Scale into its equivalent homogeneous transformation matrix.
|
||||
|
@ -302,7 +305,7 @@ impl<T: Scalar, const D: usize> Scale<T, D> {
|
|||
#[inline]
|
||||
pub fn try_inverse_mut(&mut self) -> bool
|
||||
where
|
||||
T: ClosedDiv + One + Zero
|
||||
T: ClosedDiv + One + Zero,
|
||||
{
|
||||
if let Some(v) = self.try_inverse() {
|
||||
self.vector = v.vector;
|
||||
|
|
Loading…
Reference in New Issue