Cycles / Math:

* Add M_2PI_F and M_4PI_F constants and use them inside the codebase.
This commit is contained in:
Thomas Dinges
2013-05-12 14:13:29 +00:00
parent 469979f9cb
commit 7636aeffe1
15 changed files with 41 additions and 29 deletions

View File

@@ -413,10 +413,10 @@ void SubdAccBuilder::computeInteriorStencil(SubdFaceRing *ring, GregoryAccStenci
}
else {
SubdVert *e0 = edge->from();
float costerm0 = cosf(2.0f * M_PI_F / pseudoValence(e0));
float costerm0 = cosf(M_2PI_F / pseudoValence(e0));
SubdVert *f0 = edge->to();
float costerm1 = cosf(2.0f * M_PI_F / pseudoValence(f0));
float costerm1 = cosf(M_2PI_F / pseudoValence(f0));
/* p0 +------+ q0
* | |