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

Method getLength

shared/java/PathMeasure.java:68–75  ·  view source on GitHub ↗

Return the total length of the current contour, or 0 if no path is associated (e.g. resetPath(null))

()

Source from the content-addressed store, hash-verified

66 * is associated (e.g. resetPath(null))
67 */
68 public float getLength() {
69 try {
70 Stats.onNativeCall();
71 return _nGetLength(_ptr);
72 } finally {
73 Reference.reachabilityFence(this);
74 }
75 }
76
77 /**
78 * Pins distance to 0 <= distance <= getLength(), and then computes

Callers 3

executeMethod · 0.80
drawRSXformMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nGetLengthMethod · 0.95

Tested by 1

executeMethod · 0.64