PathKt
public final class PathKt
Summary
Public methods |
|
|---|---|
static final @NonNull Path |
Returns the intersection of two paths as a new |
static final @NonNull Iterable<@NonNull PathSegment> |
@RequiresApi(value = 26)Flattens (or approximate) the |
static final @NonNull Path |
Returns the difference of two paths as a new |
static final @NonNull Path |
Returns the union of two paths as a new |
static final @NonNull Path |
Returns the union of two paths as a new |
static final @NonNull Path |
Returns the union minus the intersection of two paths as a new |
Public methods
and
public static final @NonNull Path and(@NonNull Path receiver, @NonNull Path p)
Returns the intersection of two paths as a new Path. If the paths do not intersect, returns an empty path.
flatten
@RequiresApi(value = 26)
public static final @NonNull Iterable<@NonNull PathSegment> flatten(@NonNull Path receiver, float error)
Flattens (or approximate) the Path with a series of line segments.
| Parameters | |
|---|---|
float error |
The acceptable error for a line on the Path in pixels. Typically this would be 0.5 so that the error is less than half a pixel. This value must be positive and is set to 0.5 by default. |
| See also | |
|---|---|
approximate |
minus
public static final @NonNull Path minus(@NonNull Path receiver, @NonNull Path p)
Returns the difference of two paths as a new Path.
or
public static final @NonNull Path or(@NonNull Path receiver, @NonNull Path p)
Returns the union of two paths as a new Path.