diff options
author | Pengquan Meng <mpq@google.com> | 2019-08-14 17:57:33 -0700 |
---|---|---|
committer | Chaitanya Saggurthi <csaggurt@codeaurora.org> | 2019-11-19 16:40:24 +0530 |
commit | 9a0827f8215d1838f89e028c5426c11b69869116 (patch) | |
tree | 90c3ce247e4a2466c3d49cdda5c16a2406408306 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 672fe2a891636e2d7bb46db3b36908353a9c6b8d (diff) |
Add geo targeting implementation
This CL adds support for geo targeting, including determining whether a
point is inside a simple polygon and circle.
For the judgment of the point in the polygon, the algorithm implemented
here simply considers the spherical polygon as a 2d plane polygon, which
may be not precisely. However, according to the test of real geographical
coordinates data i.e state/city/stree boundary data, this error is less than
10 meters that within 160 meters requires by the spec.
Bug: 123096618
Test: atest GeoUtils
Change-Id: I51e1fad3b48c1a58fa0510f97d9f5f9335779c30
(cherry picked from commit 7fbc74b66b58dd57deedb7336c5c1e2f0f9e2064)
CRs-Fixed: 2556887
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions