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

Method setLastPt

shared/java/Path.java:1733–1737  ·  view source on GitHub ↗

Sets last point to (x, y). If Point array is empty, append PathVerb#MOVE to verb array and append (x, y) to Point array. @param x set x-axis value of last point @param y set y-axis value of last point @return this @see https://fiddle.

(float x, float y)

Source from the content-addressed store, hash-verified

1731 * @see <a href="https://fiddle.skia.org/c/@Path_setLastPt">https://fiddle.skia.org/c/@Path_setLastPt</a>
1732 */
1733 public Path setLastPt(float x, float y) {
1734 Stats.onNativeCall();
1735 _nSetLastPt(_ptr, x, y);
1736 return this;
1737 }
1738
1739 /**
1740 * Sets the last point on the path. If Point array is empty, append {@link PathVerb#MOVE} to

Callers 2

storageMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nSetLastPtMethod · 0.95

Tested by 1

storageMethod · 0.64