PathOperation.Companion



Summary

Public properties

PathOperation

Subtract the second path from the first path.

Cmn
PathOperation

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

Cmn
PathOperation

Subtract the first path from the second path.

Cmn
PathOperation

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

Cmn
PathOperation

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

Cmn

Extension properties

PathOperation

This property is deprecated. Use PathOperation.Difference instead

Cmn
PathOperation

This property is deprecated. Use PathOperation.Intersect instead

Cmn
PathOperation

This property is deprecated. Use PathOperation.ReverseDifference instead

Cmn
PathOperation

This property is deprecated. Use PathOperation.Union instead

Cmn
PathOperation

This property is deprecated. Use PathOperation.Xor instead

Cmn

Public properties

Difference

val DifferencePathOperation

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:

  • ReverseDifference, which is the same but subtracting the first path from the second.

Intersect

val IntersectPathOperation

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:

  • Xor, which is the inverse of this operation

ReverseDifference

val ReverseDifferencePathOperation

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:

  • Difference, which is the same but subtracting the second path from the first.

Union

val UnionPathOperation

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.

Xor

val XorPathOperation

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:

  • Intersect, which is the inverse of this operation

Extension properties

difference

val PathOperation.Companion.differencePathOperation

intersect

val PathOperation.Companion.intersectPathOperation

reverseDifference

val PathOperation.Companion.reverseDifferencePathOperation

union

val PathOperation.Companion.unionPathOperation

xor

val PathOperation.Companion.xorPathOperation