ENH: use vector::normalise and VectorSpace::normalised for clarity

This commit is contained in:
Mark Olesen
2018-08-10 15:18:29 +02:00
parent c1964d7807
commit 4d6f0498d6
75 changed files with 302 additions and 354 deletions

View File

@ -239,11 +239,9 @@ forAll(isNeiInterpolatedFace, faceI)
n1 = vector(-n.z(), 0, n.x());
}
}
n1.normalise();
n1 /= mag(n1);
vector n2 = n ^ n1;
n2 /= mag(n2);
const vector n2 = normalised(n ^ n1);
tensor rot =
tensor