m->persp.py = py;
m->persp.z0 = z0;
m->persp.foc = foc;
+
+ if (foc <= 0) return;
+
for (; p < p_end; p++)
{
double x, y, zz;
- if (foc > 0)
- {
- x = p->x - px;
- y = p->y - py;
+ x = p->x - px;
+ y = p->y - py;
- zz = ((p->z - z0) + foc);
+ zz = ((p->z - z0) + foc);
- if (zz > 0)
- {
- x = (x * foc) / zz;
- y = (y * foc) / zz;
- }
-
- p->x = px + x;
- p->y = py + y;
+ if (zz > 0)
+ {
+ x = (x * foc) / zz;
+ y = (y * foc) / zz;
}
+
+ p->x = px + x;
+ p->y = py + y;
}
}
MAGIC_CHECK(m, Evas_Map, MAGIC_MAP);
return EINA_FALSE;
MAGIC_CHECK_END();
+
int i, j, k, count;
long long c;