Removing cos()/sin() ambiguity

This commit is contained in:
rosario 2015-01-25 13:43:54 +00:00 committed by manuelk
parent fcf01afb19
commit edd1b6a906
2 changed files with 4 additions and 4 deletions

View File

@ -326,8 +326,8 @@ Scheme<SCHEME_CATMARK>::assignInteriorLimitTangentMasks(VERTEX const& vertex,
Weight alpha = (Weight) (2.0f * M_PI / valence);
for (int i = 0; i < valence; ++i) {
double alphaI = alpha * i;
tan1Mask.EdgeWeight(i) = cos(alphaI);
tan2Mask.EdgeWeight(i) = sin(alphaI);
tan1Mask.EdgeWeight(i) = std::cos(alphaI);
tan2Mask.EdgeWeight(i) = std::sin(alphaI);
}
}

View File

@ -323,8 +323,8 @@ Scheme<SCHEME_LOOP>::assignInteriorLimitTangentMasks(VERTEX const& vertex,
Weight alpha = (Weight) (2.0f * M_PI / valence);
for (int i = 0; i < valence; ++i) {
double alphaI = alpha * i;
tan1Mask.EdgeWeight(i) = cos(alphaI);
tan2Mask.EdgeWeight(i) = sin(alphaI);
tan1Mask.EdgeWeight(i) = std::cos(alphaI);
tan2Mask.EdgeWeight(i) = std::sin(alphaI);
}
}