[Tizen] Exact planeclipping for actor's hit algorithm 00/265800/1
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 28 Oct 2021 07:11:27 +0000 (00:11 -0700)
committerjoogab.yun <joogab.yun@samsung.com>
Fri, 29 Oct 2021 00:56:47 +0000 (09:56 +0900)
commit60ff852dde6d7bdb368e85720154addbc60f9e74
tree5fd6d986e9396d4e09c28281110599c10412803a
parentcc5832843a63cfe3a6b52ee57f73a67c095a62e4
[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