Returns array of two points if Path contains only one line; Verb array has two entries: PathVerb#MOVE, PathVerb#LINE. Returns null if Path is not one line. @return Point[2] if Path contains exactly one line, null otherwise @see http
()
| 379 | * @see <a href="https://fiddle.skia.org/c/@Path_isLine">https://fiddle.skia.org/c/@Path_isLine</a> |
| 380 | */ |
| 381 | public Point[] getAsLine() { |
| 382 | try { |
| 383 | Stats.onNativeCall(); |
| 384 | return _nMaybeGetAsLine(_ptr); |
| 385 | } finally { |
| 386 | Reference.reachabilityFence(this); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * Returns the number of points in Path. |