Exact planeclipping for actor's hit algorithm 67/265767/5
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 28 Oct 2021 07:11:27 +0000 (00:11 -0700)
committerEunki Hong <eunkiki.hong@samsung.com>
Thu, 28 Oct 2021 12:18:11 +0000 (05:18 -0700)
commitcc5f71114816e80ffb10841ad9dc13b2710d2b61
tree94f7ae7321b7a530b1845f542aa5b55963937df7
parent3d321b256f0799b1683d9d23fabb8bfd612d3bd9
Exact planeclipping for actor's hit algorithm

rayOriginLocal is difference vector betwwen the actor and the Camera(==rayOrigin).
ActorTest API's distance value is the real euclidean distance between rayOrigin and actor.
But we only need difference vector's z-axis value to clipping by View Space Plane.

So we get hitPointWorld and multiply ViewMatrix (get from renderTask's camera actor)
and get z-coordinate value at Camera Space.

Change-Id: I644fc5e9b306423d6fa58f92e492a2a7508047a6
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali/internal/event/events/hit-test-algorithm-impl.cpp