Zephyr Scientific Library (zscilib)
mass.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_CMASS_H_
23 #define ZEPHYR_INCLUDE_ZSL_CMASS_H_
24 
25 #include <zsl/zsl.h>
26 #include <zsl/vectors.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
47 int zsl_phy_mass_center(struct zsl_vec *m, struct zsl_vec *x,
48  struct zsl_vec *y, struct zsl_vec *z, zsl_real_t *mx,
49  zsl_real_t *my, zsl_real_t *mz);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* ZEPHYR_INCLUDE_ZSL_CMASS_H_ */
56  /* End of center of mass group */
vectors.h
API header file for vectors in zscilib.
zsl_phy_mass_center
int zsl_phy_mass_center(struct zsl_vec *m, struct zsl_vec *x, struct zsl_vec *y, struct zsl_vec *z, zsl_real_t *mx, zsl_real_t *my, zsl_real_t *mz)
Calculates the three coordinate position of the center of mass of a set of objects given their masses...
zsl.h
API header file for zscilib.
zsl_vec
Represents a vector.
Definition: vectors.h:40
zsl_real_t
double zsl_real_t
Definition: zsl.h:51