MCPcopy Create free account
hub / github.com/JetBrains/skija / getAsLine

Method getAsLine

shared/java/Path.java:381–388  ·  view source on GitHub ↗

Returns array of two points if Path contains only one line; Verb array has two entries: PathVerb#MOVE, PathVerb#LINE. Returns null if Path is not one line. @return Point[2] if Path contains exactly one line, null otherwise @see http

()

Source from the content-addressed store, hash-verified

379 * @see <a href="https://fiddle.skia.org/c/@Path_isLine">https://fiddle.skia.org/c/@Path_isLine</a>
380 */
381 public Point[] getAsLine() {
382 try {
383 Stats.onNativeCall();
384 return _nMaybeGetAsLine(_ptr);
385 } finally {
386 Reference.reachabilityFence(this);
387 }
388 }
389
390 /**
391 * Returns the number of points in Path.

Callers 1

checksMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nMaybeGetAsLineMethod · 0.95

Tested by 1

checksMethod · 0.64