Skip to content

Waypoint

Module: terminaltexteffects.engine.motion

A Waypoint comprises a coordinate, speed, and, optionally, bezier control point(s).

Attributes:

Name Type Description
waypoint_id str

unique identifier for the waypoint

coord Coord

coordinate

bezier_control tuple[Coord, ...] | None

coordinate of the control point for a bezier curve. Defaults to None.

Source code in terminaltexteffects/engine/motion.py
@dataclass(frozen=True)
class Waypoint:
    """A Waypoint comprises a coordinate, speed, and, optionally, bezier control point(s).

    Attributes:
        waypoint_id (str): unique identifier for the waypoint
        coord (Coord): coordinate
        bezier_control (tuple[Coord, ...] | None): coordinate of the control point for a bezier curve. Defaults to None.

    """

    waypoint_id: str
    coord: Coord
    bezier_control: tuple[Coord, ...] | None = None