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

PathFillType.Companion

public static class PathFillType.Companion


Summary

Public methods

static final @NonNull PathFillType

The interior is defined by an odd number of edge crossings.

static final @NonNull PathFillType

The interior is defined by a non-zero sum of signed edge crossings.

Public methods

getEvenOdd

public static final @NonNull PathFillType getEvenOdd()

The interior is defined by an odd number of edge crossings.

For a given point, the point is considered to be on the inside of the path if a line drawn from the point to infinity crosses an odd number of lines.

See: https://en.wikipedia.org/wiki/Even-odd_rule

getNonZero

public static final @NonNull PathFillType getNonZero()

The interior is defined by a non-zero sum of signed edge crossings.

For a given point, the point is considered to be on the inside of the path if a line drawn from the point to infinity crosses lines going clockwise around the point a different number of times than it crosses lines going counter-clockwise around that point.

See: https://en.wikipedia.org/wiki/Nonzero-rule