Zephyr Scientific Library (zscilib)
rotation.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020 Kevin Townsend (KTOWN)
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
22 #ifndef ZEPHYR_INCLUDE_ZSL_ROTATION_H_
23 #define ZEPHYR_INCLUDE_ZSL_ROTATION_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
44  zsl_real_t *phi);
45 
59 
70 int zsl_phy_rot_turn(zsl_real_t phi, zsl_real_t *turn);
71 
86  zsl_real_t *time);
87 
103  zsl_real_t *of);
104 
120  zsl_real_t *of);
121 
135 
148 int zsl_phy_rot_vel(zsl_real_t omega, zsl_real_t r, zsl_real_t *vel);
149 
164  zsl_real_t *a);
165 
179 
194 
206 
218 
233 
248 
262 
273 int zsl_phy_rot_power(zsl_real_t torque, zsl_real_t omega, zsl_real_t *power);
274 
275 #ifdef __cplusplus
276 }
277 #endif
278 
279 #endif /* ZEPHYR_INCLUDE_ZSL_ROTATION_H_ */
280  /* End of rotation group */
zsl_phy_rot_av_omega
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 base...
zsl_phy_rot_time
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 'o...
zsl_phy_rot_period
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...
zsl_phy_rot_dist
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 an...
zsl_phy_rot_frequency
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 (omeg...
zsl_phy_rot_power
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 ...
zsl_phy_rot_angle
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.
zsl_phy_rot_omega2
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 acc...
zsl_phy_rot_total_accel
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 unde...
zsl_phy_rot_omega
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 acc...
zsl_phy_rot_vel
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 ...
zsl_phy_rot_cent_accel2
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 un...
zsl.h
API header file for zscilib.
zsl_phy_rot_ang_accel
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 ...
zsl_phy_rot_accel
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 circu...
zsl_phy_rot_turn
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,...
zsl_real_t
double zsl_real_t
Definition: zsl.h:51
zsl_phy_rot_cent_accel
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 un...
zsl_phy_rot_ener
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 angul...