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

Method getPosition

shared/java/PathMeasure.java:83–91  ·  view source on GitHub ↗

Pins distance to 0 <= distance <= getLength(), and then computes the corresponding position. @return null if there is no path, or a zero-length path was specified.

(float distance)

Source from the content-addressed store, hash-verified

81 * @return null if there is no path, or a zero-length path was specified.
82 */
83 @Nullable
84 public Point getPosition(float distance) {
85 try {
86 Stats.onNativeCall();
87 return _nGetPosition(_ptr, distance);
88 } finally {
89 Reference.reachabilityFence(this);
90 }
91 }
92
93 /**
94 * Pins distance to 0 <= distance <= getLength(), and then computes

Callers 6

executeMethod · 0.80
drawParagraphMethod · 0.80
drawMeasureMethod · 0.80
drawRSXformMethod · 0.80
drawSelectionMethod · 0.80
drawPositionsMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nGetPositionMethod · 0.95

Tested by 1

executeMethod · 0.64