PathUtilities

Added in 1.0.0

public final class PathUtilities


Summary

Public methods

static final @NonNull PathIterator
iterator(@NonNull Path receiver)

Creates a new PathIterator for this path that evaluates conics as quadratics.

static final @NonNull PathIterator
iterator(
    @NonNull Path receiver,
    @NonNull PathIterator.ConicEvaluation conicEvaluation,
    float tolerance
)

Creates a new PathIterator for this path.

Public methods

iterator

public static final @NonNull PathIterator iterator(@NonNull Path receiver)

Creates a new PathIterator for this path that evaluates conics as quadratics. To preserve conics, use the Path.iterator function that takes a PathIterator.ConicEvaluation parameter.

iterator

public static final @NonNull PathIterator iterator(
    @NonNull Path receiver,
    @NonNull PathIterator.ConicEvaluation conicEvaluation,
    float tolerance
)

Creates a new PathIterator for this path. To preserve conics as conics (not convert them to quadratics), set conicEvaluation to PathIterator.ConicEvaluation.AsConic.