Return the total length of the current contour, or 0 if no path is associated (e.g. resetPath(null))
()
| 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 |