style: Fix formatting.

This commit is contained in:
Emilio Cobos Álvarez 2018-11-17 09:48:01 +01:00
parent cd75cd6a86
commit 06fe0a1fc0
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 34 additions and 20 deletions

View file

@ -300,7 +300,10 @@ impl IsParallelTo for (Number, Number, Number) {
// If a and b is parallel, the angle between them is 0deg, so
// a x b = |a|*|b|*sin(0)*n = 0 * n, |a x b| == 0.
let self_vector = DirectionVector::new(self.0.get(), self.1.get(), self.2.get());
self_vector.cross(*vector).square_length().approx_eq(&0.0f32)
self_vector
.cross(*vector)
.square_length()
.approx_eq(&0.0f32)
}
}