csc.Direction

class csc.Direction

Direction class Implements direction.

__init__(self: csc.Direction, value: csc.DirectionValue = <DirectionValue.Unknown: 2>) None

Methods

__init__(self, value)

inverse(self)

Get the inverse direction.

to_string(self)

Get the string representation of the direction.

value(self)

Get the value of the direction.

__annotations__ = {}
__init__(self: csc.Direction, value: csc.DirectionValue = <DirectionValue.Unknown: 2>) None
__module__ = 'csc'
inverse(self: csc.Direction) csc.DirectionValue

Get the inverse direction.

Returns:

The inverse direction.

Return type:

csc.Direction

1import csc
2d = csc.Direction(csc.DirectionValue.In)
3print(d.inverse())
to_string(self: csc.Direction) str

Get the string representation of the direction.

Returns:

The string representation of the direction.

Return type:

str

value(self: csc.Direction) csc.DirectionValue

Get the value of the direction.

Returns:

The value of the direction.

Return type:

csc.DirectionValue

1import csc
2d = csc.Direction(csc.DirectionValue.In)
3print(d.value())