New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
|
|
@ -40,20 +40,20 @@ EXPORT void norm_to_polar(struct vec2 *dst, const struct vec3 *norm);
|
|||
EXPORT void polar_to_norm(struct vec3 *dst, const struct vec2 *polar);
|
||||
|
||||
EXPORT float calc_torquef(float val1, float val2, float torque,
|
||||
float min_adjust, float t);
|
||||
float min_adjust, float t);
|
||||
|
||||
EXPORT void calc_torque(struct vec3 *dst, const struct vec3 *v1,
|
||||
const struct vec3 *v2, float torque, float min_adjust,
|
||||
float t);
|
||||
const struct vec3 *v2, float torque, float min_adjust,
|
||||
float t);
|
||||
|
||||
static inline float get_percentage(float start, float end, float mid)
|
||||
{
|
||||
return (mid-start) / (end-start);
|
||||
return (mid - start) / (end - start);
|
||||
}
|
||||
|
||||
static inline float get_percentagei(int start, int end, int mid)
|
||||
{
|
||||
return (float)(mid-start) / (float)(end-start);
|
||||
return (float)(mid - start) / (float)(end - start);
|
||||
}
|
||||
|
||||
EXPORT float rand_float(int positive_only);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue