MCPcopy Create free account
hub / github.com/HumbleUI/Skija / conservativelyContainsRect

Method conservativelyContainsRect

shared/java/Path.java:792–800  ·  view source on GitHub ↗

Returns true if rect is contained by Path. May return false when rect is contained by Path. For now, only returns true if Path has one contour and is convex. rect may share points and edges with Path and be contained. Returns true if rect is empty, that is, it has zero width or height; an

(@NotNull Rect rect)

Source from the content-addressed store, hash-verified

790 * @see <a href="https://fiddle.skia.org/c/@Path_conservativelyContainsRect">https://fiddle.skia.org/c/@Path_conservativelyContainsRect</a>
791 */
792 @Contract(pure = true)
793 public boolean conservativelyContainsRect(@NotNull Rect rect) {
794 try {
795 Stats.onNativeCall();
796 return _nConservativelyContainsRect(_ptr, rect._left, rect._top, rect._right, rect._bottom);
797 } finally {
798 ReferenceUtil.reachabilityFence(this);
799 }
800 }
801
802 /**
803 * <p>Approximates conic with quad array. Conic is constructed from start Point p0,

Calls 3

onNativeCallMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

containsMethod · 0.64