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

Method contains

shared/java/Path.java:1061–1069  ·  view source on GitHub ↗

Returns true if the point (x, y) is contained by Path, taking into account PathFillMode. @param x x-axis value of containment test @param y y-axis value of containment test @return true if Point is in Path @see https://fiddle.skia.org/

(float x, float y)

Source from the content-addressed store, hash-verified

1059 * @see <a href="https://fiddle.skia.org/c/@Path_contains">https://fiddle.skia.org/c/@Path_contains</a>
1060 */
1061 @Contract(pure = true)
1062 public boolean contains(float x, float y) {
1063 try {
1064 Stats.onNativeCall();
1065 return _nContains(_ptr, x, y);
1066 } finally {
1067 ReferenceUtil.reachabilityFence(this);
1068 }
1069 }
1070
1071 /**
1072 * Returns true if the point is contained by Path, taking into

Calls 3

onNativeCallMethod · 0.95
_nContainsMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected