diff options
author | fred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local> | 2016-07-29 10:54:30 -0700 |
---|---|---|
committer | fred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local> | 2016-08-08 10:25:59 -0700 |
commit | 254866760e75205b19be2ae377c5081ea0aee5af (patch) | |
tree | f6c09eff74fe6c4c58b9d95287a0ae9686fcc9bc | |
parent | 20f54e4906be00aa303a8df36f312c137182d1c6 (diff) | |
download | mupdf-254866760e75205b19be2ae377c5081ea0aee5af.tar.xz |
android java - add "contains" function to Rect.
-rw-r--r-- | platform/java/src/com/artifex/mupdf/fitz/Rect.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Rect.java b/platform/java/src/com/artifex/mupdf/fitz/Rect.java index 819646e8..477c9565 100644 --- a/platform/java/src/com/artifex/mupdf/fitz/Rect.java +++ b/platform/java/src/com/artifex/mupdf/fitz/Rect.java @@ -74,4 +74,12 @@ public class Rect return this; } + + public boolean contains(float x, float y) + { + if (x>=x0 && x<x1 && y>=y0 && y<y1) + return true; + + return false; + } } |