Signed-off-by: Chris Michael <cp.michael@samsung.com>
y = p->y - cy;
z = p->z - cz;
- if (rz != 0.0)
+ if (!EINA_DBL_CMP(rz, 0.0))
{
xx = x * cos(rz);
yy = x * sin(rz);
y = yy + (y * cos(rz));
}
- if (ry != 0.0)
+ if (!EINA_DBL_CMP(ry, 0.0))
{
xx = x * cos(ry);
zz = x * sin(ry);
z = zz + (z * cos(ry));
}
- if (rx != 0.0)
+ if (!EINA_DBL_CMP(rx, 0.0))
{
zz = z * cos(rx);
yy = z * sin(rx);
ln = (nx * nx) + (ny * ny) + (nz * nz);
ln = sqrt(ln);
- if (ln != 0.0)
+ if (!EINA_DBL_CMP(ln, 0.0))
{
nx /= ln;
ny /= ln;
ln = (x * x) + (y * y) + (z * z);
ln = sqrt(ln);
- if (ln != 0.0)
+ if (!EINA_DBL_CMP(ln, 0.0))
{
x /= ln;
y /= ln;