Skip to content

Commit

Permalink
Improve Trajectory docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jun 1, 2021
1 parent 9e284b6 commit 2d105c5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion moviepy/video/tools/interpolators.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ class Trajectory:
"""Trajectory compound by time frames and (x, y) pixels.
It's designed as an interpolator, so you can get the position at a given
time ``t``.
time ``t``. You can instanciate it from a file using the methods
``from_file`` and ``load_list``.
Parameters
----------
Expand All @@ -77,6 +79,12 @@ class Trajectory:
yy : list or numpy.ndarray
Y positions in the trajectory.
Examples
--------
>>> trajectory = Trajectory([0, .166, .333], [554, 474, 384], [100, 90, 91])
"""

def __init__(self, tt, xx, yy):
Expand Down

0 comments on commit 2d105c5

Please sign in to comment.