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

Method getTangent

shared/java/PathMeasure.java:99–107  ·  view source on GitHub ↗

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

(float distance)

Source from the content-addressed store, hash-verified

97 * @return null if there is no path, or a zero-length path was specified.
98 */
99 @Nullable
100 public Point getTangent(float distance) {
101 try {
102 Stats.onNativeCall();
103 return _nGetTangent(_ptr, distance);
104 } finally {
105 Reference.reachabilityFence(this);
106 }
107 }
108
109 /**
110 * Pins distance to 0 <= distance <= getLength(), and then computes

Callers 3

executeMethod · 0.80
drawMeasureMethod · 0.80
drawRSXformMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nGetTangentMethod · 0.95

Tested by 1

executeMethod · 0.64