{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PathOperation.Companion

public static class PathOperation.Companion


Summary

Public methods

static final @NonNull PathOperation

Subtract the second path from the first path.

static final @NonNull PathOperation

Create a new path that is the intersection of the two paths, leaving the overlapping pieces of the path.

static final @NonNull PathOperation

Subtract the first path from the second path.

static final @NonNull PathOperation

Create a new path that is the union (inclusive-or) of the two paths.

static final @NonNull PathOperation

Create a new path that is the exclusive-or of the two paths, leaving everything but the overlapping pieces of the path.

Extension functions

static final @NonNull PathOperation
static final @NonNull PathOperation
static final @NonNull PathOperation
static final @NonNull PathOperation
static final @NonNull PathOperation

Public methods

getDifference

public static final @NonNull PathOperation getDifference()

Subtract the second path from the first path.

For example, if the two paths are overlapping circles of equal diameter but differing centers, the result would be a crescent portion of the first circle that was not overlapped by the second circle.

See also:

getIntersect

public static final @NonNull PathOperation getIntersect()

Create a new path that is the intersection of the two paths, leaving the overlapping pieces of the path.

For example, if the two paths are overlapping circles of equal diameter but differing centers, the result would be only the overlapping portion of the two circles.

See also:

getReverseDifference

public static final @NonNull PathOperation getReverseDifference()

Subtract the first path from the second path.

For example, if the two paths are overlapping circles of equal diameter but differing centers, the result would be a crescent portion of the second circle that was not overlapped by the first circle.

See also:

getUnion

public static final @NonNull PathOperation getUnion()

Create a new path that is the union (inclusive-or) of the two paths.

For example, if the two paths are overlapping circles of equal diameter but differing centers, the result would be a figure-eight like shape matching the outer boundaries of both circles.

getXor

public static final @NonNull PathOperation getXor()

Create a new path that is the exclusive-or of the two paths, leaving everything but the overlapping pieces of the path.

For example, if the two paths are overlapping circles of equal diameter but differing centers, the figure-eight like shape less the overlapping parts

See also:

Extension functions

PathOperationKt.getDifference

public static final @NonNull PathOperation PathOperationKt.getDifference(
    @NonNull PathOperation.Companion receiver
)

PathOperationKt.getIntersect

public static final @NonNull PathOperation PathOperationKt.getIntersect(@NonNull PathOperation.Companion receiver)

PathOperationKt.getReverseDifference

public static final @NonNull PathOperation PathOperationKt.getReverseDifference(
    @NonNull PathOperation.Companion receiver
)

PathOperationKt.getUnion

public static final @NonNull PathOperation PathOperationKt.getUnion(@NonNull PathOperation.Companion receiver)

PathOperationKt.getXor

public static final @NonNull PathOperation PathOperationKt.getXor(@NonNull PathOperation.Companion receiver)