traffic/core/flight.py
def at_ratio(self, ratio: float = 0.5) -> Optional[Position]:
        """Returns a position on the trajectory.

        This method is convenient to place a marker on the trajectory in
        visualisation output.

        - ``Flight.at_ratio(0)`` is the first point in the trajectory.
        - ``Flight.at_ratio(1)`` is the last point of the trajectory
          (equivalent to ``Flight.at()``)
        """
        if ratio < 0 or ratio > 1:
            raise RuntimeError("ratio must be comprised between 0 and 1")

        subset = self.between(
            self.start, self.start + ratio * self.duration, strict=False
        )

        assert subset is not None
        return subset.at()
Returns a position on the trajectory.

        This method is convenient to place a marker on the trajectory in
        visualisation output.

        - ``Flight.at_ratio(0)`` is the first point in the trajectory.
        - ``Flight.at_ratio(1)`` is the last point of the trajectory
          (equivalent to ``Flight.at()``)
        
Returns a position on the trajectory.
This method is convenient to place a marker on the trajectory in
visualisation output.


Returns a position on the trajectory . This method is convenient to place a marker on the trajectory in visualisation output .
def at_ratio(self, ratio: float = 0.5) -> Optional[Position]:
        if ratio < 0 or ratio > 1:
            raise RuntimeError("ratio must be comprised between 0 and 1")
        subset = self.between(
            self.start, self.start + ratio * self.duration, strict=False
        )
        assert subset is not None
        return subset.at()
def at_ratio ( self , ratio : float = 0.5 ) -> Optional [ Position ] : if ratio < 0 or ratio > 1 : raise RuntimeError ( "ratio must be comprised between 0 and 1" ) subset = self . between ( self . start , self . start + ratio * self . duration , strict = False ) assert subset is not None return subset . at ( )
Returns a position on the trajectory.
Returns a position on the trajectory .
"""Returns a position on the trajectory.

        This method is convenient to place a marker on the trajectory in
        visualisation output.

        - ``Flight.at_ratio(0)`` is the first point in the trajectory.
        - ``Flight.at_ratio(1)`` is the last point of the trajectory
          (equivalent to ``Flight.at()``)
        """
self
ratio
float