Package icyllis.arc3d.core

# Class PathUtils

java.lang.Object
icyllis.arc3d.core.PathUtils

public class PathUtils extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PathUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `fillPathWithPaint(Path src, Paint paint, Path dst, Rect2fc cullRect, float resScale)`
  Returns the filled equivalent of the stroked path.
  `static boolean`
  `fillPathWithPaint(Path src, Paint paint, Path dst, Rect2fc cullRect, Matrixc ctm)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PathUtils

    public PathUtils()

- ## Method Details

  - ### fillPathWithPaint

    public static boolean fillPathWithPaint(@Nonnull Path src, @Nonnull Paint paint, @Nonnull Path dst, @Nullable Rect2fc cullRect, float resScale)
    Returns the filled equivalent of the stroked path.
    Parameters:
      `src` - Path read to create a filled version
      `paint` - Paint, from which attributes such as stroke cap, width, miter, and join, as well as pathEffect will be used.
      `dst` - resulting Path; may be the same as src, but may not be nullptr
      `cullRect` - optional limit passed to PathEffect
      `resScale` - if > 1, increase precision, else if (0 invalid input: '<' resScale invalid input: '<' 1) reduce precision to favor speed and size
    Returns:
      true if the dst path was updated, false if it was not (e.g. if the path represents hairline and cannot be filled).

  - ### fillPathWithPaint

    public static boolean fillPathWithPaint(@Nonnull Path src, @Nonnull Paint paint, @Nonnull Path dst, @Nullable Rect2fc cullRect, @Nonnull Matrixc ctm)