Skip to content

enums

Classes:

AADirection

Bases: CustomIntEnum

Methods:

Attributes:

BOTH class-attribute instance-attribute

BOTH = 3

HORIZONTAL class-attribute instance-attribute

HORIZONTAL = 2

VERTICAL class-attribute instance-attribute

VERTICAL = 1

to_yx

to_yx() -> tuple[bool, bool]
Source code
15
16
def to_yx(self) -> tuple[bool, bool]:
    return (bool(self & AADirection.VERTICAL), bool(self & AADirection.HORIZONTAL))