Class PathUtils

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

public class PathUtils extends Object
  • 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)