projectile_plot: Build a simple trajectory plot

Description Usage Arguments Examples

View source: R/projectile_plot.R

Description

Plot the trajectory of some object given the initial conditions (ignore drag)

Usage

1
projectile_plot(x0 = 0, y0 = 0, vx0 = 10, vy0 = 50, ax = 0, ay = -9.8, starttime = 0, endtime = 15)

Arguments

x0

Initial x position (m)

y0

Initial y position (m)

vx0

Initial x velocity (m/s)

vy0

Initial y velocity (m/s)

ax

Acceleration in x direction (m/s2)

ay

Acceleration in y direction (m/s2)

starttime

Beginning time for plot (sec)

endtime

End time for plot (sec)

Examples

1
2
3
projectile_plot(x0 = 0, y0 = 0, vx0 = 10, vy0 = 50, ax = 0, ay = -9.8,
    starttime = 0, endtime = 15)
    

jtuttle7/LearnFunctions documentation built on May 25, 2019, 6:25 p.m.