summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_3d_utils.h
diff options
context:
space:
mode:
authorTaekyun Kim <tkq.kim@samsung.com>2014-01-06 15:10:59 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-04-25 16:19:18 +0900
commitfc6cdaaa9d9d1af66ee931aa249faff4a2a81543 (patch)
tree3b5c49a9b5f1c398e46c8239274de314284eb516 /src/lib/evas/include/evas_3d_utils.h
parent44a9f924ee082d264163b8d4a2ffa629c6c3393a (diff)
Evas: 3D: evas_3d_node_look_at_set() bug fix
Diffstat (limited to 'src/lib/evas/include/evas_3d_utils.h')
-rw-r--r--src/lib/evas/include/evas_3d_utils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_3d_utils.h b/src/lib/evas/include/evas_3d_utils.h
index 196d3df5f5..92ae65a564 100644
--- a/src/lib/evas/include/evas_3d_utils.h
+++ b/src/lib/evas/include/evas_3d_utils.h
@@ -1524,3 +1524,17 @@ evas_box3_ray3_intersect(const Evas_Box3 *box EINA_UNUSED, const Evas_Ray3 *ray
1524 /* TODO: */ 1524 /* TODO: */
1525 return EINA_TRUE; 1525 return EINA_TRUE;
1526} 1526}
1527
1528static inline Evas_Real
1529evas_reciprocal_sqrt(Evas_Real x)
1530{
1531 long i;
1532 float y, r;
1533
1534 y = x * 0.5f;
1535 i = *(long *)(&x);
1536 i = 0x5f3759df - (i >> 1);
1537 r = *(float *)(&i);
1538 r = r * (1.5f - r * r * y);
1539 return r;
1540}