corrected a pow argument casting

This commit is contained in:
Marco Callieri 2008-12-16 09:52:04 +00:00
parent 0f0ac756e4
commit 7548c5e2ac
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ vcg::Point2<Scalar> Camera<Scalar>::UndistortedToDistorted(vcg::Point2<Scalar>
else /* three real roots */
{
D = sqrt(-D);
S = pow((hypot (R, D)),CBRT);
S = pow((Scalar)(hypot (R, D)),(Scalar)CBRT);
T = atan2 (D, R) / 3;
//SinCos(T, sinT, cosT);
sinT=sin(T);