Plots the trajectory by displaying the `x` and `y` coordinates as points on a 2D plot. Optionally, you can add a line connecting the points.
# S3 method for trajectory
plot(x, ..., stepSize = 0)A plot displaying the trajectory.
A `Trajectory` object to plot.
Other parameters to be passed.
An integer specifying the interval for plotting segments of the trajectory. If set to 0, the entire trajectory is plotted. Default is 0.