World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл mathematics.h

См. исходные тексты.

Перечисления

enum  AVRounding {
  AV_ROUND_ZERO = 0, AV_ROUND_INF = 1, AV_ROUND_DOWN = 2, AV_ROUND_UP = 3,
  AV_ROUND_NEAR_INF = 5, AV_ROUND_PASS_MINMAX = 8192
}
 

Функции

int64_t av_const av_gcd (int64_t a, int64_t b)
 
int64_t av_rescale (int64_t a, int64_t b, int64_t c) av_const
 
int64_t av_rescale_rnd (int64_t a, int64_t b, int64_t c, enum AVRounding rnd) av_const
 
int64_t av_rescale_q (int64_t a, AVRational bq, AVRational cq) av_const
 
int64_t av_rescale_q_rnd (int64_t a, AVRational bq, AVRational cq, enum AVRounding rnd) av_const
 
int av_compare_ts (int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b)
 
int64_t av_compare_mod (uint64_t a, uint64_t b, uint64_t mod)
 
int64_t av_rescale_delta (AVRational in_tb, int64_t in_ts, AVRational fs_tb, int duration, int64_t *last, AVRational out_tb)
 
int64_t av_add_stable (AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t inc)