summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPengquan Meng <mpq@google.com>2019-08-14 17:57:33 -0700
committerPengquan Meng <mpq@google.com>2019-08-21 14:34:58 -0700
commit542967613125640c0b476572f86b4ac2cff4ba7c (patch)
tree7ce1a38e07f28c62bace45c3b9c0310c0cb5d803 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent712fc079a0b7cd28fd03155bac06732e0a5dc897 (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 Merged-In: I51e1fad3b48c1a58fa0510f97d9f5f9335779c30 Change-Id: I51e1fad3b48c1a58fa0510f97d9f5f9335779c30 (cherry picked from commit 7fbc74b66b58dd57deedb7336c5c1e2f0f9e2064)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions