Zephyr Scientific Library (zscilib)
|
API header file for rotation in zscilib. More...
#include <zsl/zsl.h>
Go to the source code of this file.
Functions | |
int | zsl_phy_rot_angle (zsl_real_t oi, zsl_real_t time, zsl_real_t a, zsl_real_t *phi) |
Calculates the change in the angle based on initial angular velocity, time and acceleration. More... | |
int | zsl_phy_rot_dist (zsl_real_t phi, zsl_real_t r, zsl_real_t *dist) |
Calculates the distance travelled in meters by an object under circular motion given the change in angle in radians (phi) and the radius of its trajectory (r). More... | |
int | zsl_phy_rot_turn (zsl_real_t phi, zsl_real_t *turn) |
Calculates the number of rotations around a circle by an object under circular motion, based on the total change in angle it has travelled in radians (phi). More... | |
int | zsl_phy_rot_time (zsl_real_t oi, zsl_real_t of, zsl_real_t a, zsl_real_t *time) |
Calculates the time in seconds that it takes an object to change its angular velocity from 'oi' to 'of' under a constant angular acceleration (a). More... | |
int | zsl_phy_rot_omega (zsl_real_t oi, zsl_real_t time, zsl_real_t a, zsl_real_t *of) |
Calculates the final angular velocity in radians per second of an object under a constant angular acceleration (a) based on its initial angular velocity (oi) and the time passed since it started moving (time). More... | |
int | zsl_phy_rot_omega2 (zsl_real_t oi, zsl_real_t phi, zsl_real_t a, zsl_real_t *of) |
Calculates the final angular velocity in radians per second of an object under a constant angular acceleration (a) based on its initial angular velocity (oi) and the angle it has run (phy). More... | |
int | zsl_phy_rot_av_omega (zsl_real_t phi, zsl_real_t time, zsl_real_t *omega) |
Calculates the average angular velocity in radians per second of an object under circular motion based on the time and the angle it has run (phy). More... | |
int | zsl_phy_rot_vel (zsl_real_t omega, zsl_real_t r, zsl_real_t *vel) |
Calculates the module of the velocity tangent to the circular trajectory of an object under circular motion, based on its instant angular velocity (omega) and the radius of its trajectory (r). More... | |
int | zsl_phy_rot_ang_accel (zsl_real_t oi, zsl_real_t of, zsl_real_t time, zsl_real_t *a) |
Calculates the angular acceleration of an object under circular motion in radians per second squared based on its initial (oi) and final (of) angular velocities and time. More... | |
int | zsl_phy_rot_accel (zsl_real_t a, zsl_real_t r, zsl_real_t *accel) |
Calculates the module of the acceleration tangent to the circular trajectory of an object under circular motion, based on its angular acceleration (a) and the radius of its trajectory (r). More... | |
int | zsl_phy_rot_ener (zsl_real_t omega, zsl_real_t i, zsl_real_t *rke) |
Calculates the angular kinetic energy in joules of an object under circular motion based on its angular velocity (omega) and its moment of inertia (i). More... | |
int | zsl_phy_rot_period (zsl_real_t omega, zsl_real_t *t) |
Calculates the period in seconds of an object under circular motion given its angular velocity (omega). More... | |
int | zsl_phy_rot_frequency (zsl_real_t omega, zsl_real_t *f) |
Calculates the frequency in herzs of an object under circular motion given its angular velocity (omega). More... | |
int | zsl_phy_rot_cent_accel (zsl_real_t vel, zsl_real_t r, zsl_real_t *ca) |
Calculates the module of the centripetal (AKA normal) acceleration experienced by an object moving under circular motion, given its tangencial velocity (vel) and the radius of its trajectory (r). More... | |
int | zsl_phy_rot_cent_accel2 (zsl_real_t t, zsl_real_t r, zsl_real_t *ca) |
Calculates the module of the centripetal (AKA normal) acceleration experienced by an object moving under circular motion, given its period (t) and the radius of its trajectory (r). More... | |
int | zsl_phy_rot_total_accel (zsl_real_t accel, zsl_real_t ca, zsl_real_t *at) |
Calculates the module of the total acceleration in meters per second squared of an object moving under circular motion combining its tangencial (accel) and centripetal (ca) accelerations. More... | |
int | zsl_phy_rot_power (zsl_real_t torque, zsl_real_t omega, zsl_real_t *power) |
Calculates the mechanical power in watts necessary to mantain a circular motion given its torque and angular velocity (omega). More... | |
API header file for rotation in zscilib.
This file contains the zscilib rotation APIs
Definition in file rotation.h.