neoscore.core.directions
Enums describing directions
-
class neoscore.core.directions.DirectionY[source]
Bases: Enum
A vertical direction
-
UP = -1
-
DOWN = 1
-
flip() → DirectionY[source]
Return the opposite direction as this
-
classmethod from_sign(value: float | Unit) → DirectionY[source]
Get a DirectionY
from the sign of a number or Unit
value.
-
class neoscore.core.directions.DirectionX[source]
Bases: Enum
A horizontal direction
-
LEFT = -1
-
RIGHT = 1
-
flip() → DirectionX[source]
Return the opposite direction as this
-
classmethod from_sign(value: float | Unit) → DirectionX[source]
Get a DirectionX
from the sign of a number or Unit
value.