Zephyr Scientific Library (zscilib)
|
API header file for projectiles in zscilib. More...
#include <zsl/zsl.h>
Go to the source code of this file.
Functions | |
int | zsl_phy_proj_init_vel (zsl_real_t vi, zsl_real_t theta, zsl_real_t *vih, zsl_real_t *viv) |
Decomposes the initial velocity of an object under projectile motion into its horizontal and vertical components based on the angle (theta) it is launched at. More... | |
int | zsl_phy_proj_time (zsl_real_t viv, zsl_real_t yi, zsl_real_t yf, zsl_real_t *t) |
Calculates the total time of travel in seconds of an object under projectile motion from an initial height (yi) and a final height (yf) given the vertical velocity at the starting point. Measurements are based on reaching yf on descent. More... | |
int | zsl_phy_proj_time_first (zsl_real_t viv, zsl_real_t yi, zsl_real_t yf, zsl_real_t *t) |
Calculates the total time of travel in seconds of an object under projectile motion from an initial height (yi) and a final height (yf) given the vertical velocity at the starting point. Measurements are based on the first instance that yf is reached, which can occur during the ascent or descent stages depending on values provided. More... | |
int | zsl_phy_proj_time2 (zsl_real_t viv, zsl_real_t vfv, zsl_real_t *t) |
Calculates the total time of travel in seconds of an object under projectile motion based on the vertical velocity at the starting and ending points. More... | |
int | zsl_phy_proj_ver_motion (zsl_real_t viv, zsl_real_t t, zsl_real_t yi, zsl_real_t *yf) |
Calculates the height in meters of an object under projectile motion based on the initial vertical velocity (viv), the initial height (yi) and the time (t). More... | |
int | zsl_phy_proj_ver_vel (zsl_real_t viv, zsl_real_t t, zsl_real_t *vfv) |
Calculates the vertical velocity in meters per second of an object under projectile motion based on the initial vertical velocity (viv), and the time (t). More... | |
int | zsl_phy_proj_hor_motion (zsl_real_t vih, zsl_real_t t, zsl_real_t xi, zsl_real_t *xf) |
Calculates the horizontal position in meters of an object under projectile motion based on the horizontal velocity (vih), the time (t) and the initial horizontal position (xi). More... | |
int | zsl_phy_proj_trajectory (zsl_real_t vih, zsl_real_t viv, zsl_real_t xi, zsl_real_t yi, zsl_real_t xf, zsl_real_t *yf) |
Calculates the vertical position in meters of an object under projectile motion at any given horizontal position, knowing the initial vertical velocity (viv), the horizontal velocity (vih) and the coordinates of the launching point (xi, yi). More... | |
int | zsl_phy_proj_vel (zsl_real_t vfh, zsl_real_t vfv, zsl_real_t *vf) |
Calculates the module of the total velocity in meters per second of an object under projectile motion at any point, given the vertical (vfv) and horizontal (vfh) velocities at that point. More... | |
int | zsl_phy_proj_angle (zsl_real_t vfh, zsl_real_t vfv, zsl_real_t *theta) |
Calculates the angle in radians between the floor and the total velocity of an object under projectile motion based on the vertical (vfv) and horizontal (vfh) velocities. More... | |
int | zsl_phy_proj_range (zsl_real_t vih, zsl_real_t viv, zsl_real_t xi, zsl_real_t yi, zsl_real_t *dist) |
Calculates the horizontal distance in meters between the launching point of an object and the point where it reaches the ground based on the initial vertical velocity (viv), the horizontal velocity (vih) and the coordinates of the launching point (xi, yi). More... | |
API header file for projectiles in zscilib.
This file contains the zscilib projectiles APIs
Definition in file projectiles.h.