[Tizen] Exact planeclipping for actor's hit algorithm 41/267641/1
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 28 Oct 2021 07:11:27 +0000 (00:11 -0700)
committerjoogab.yun <joogab.yun@samsung.com>
Wed, 8 Dec 2021 06:14:34 +0000 (15:14 +0900)
commit85da1f82d7853ac5c7c53f7d80067d61a6123dd5
tree51356496dd0c7072feefab9bf6dbfe57a101f2ca
parent95e83ae7c290cdfc8547731cd5093f17f6da0362
[Tizen] 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