SFTtech/openage

Pure fixed-point math functions

開放

#1,543 建立於 2023年9月17日

 (13 則留言) (0 個反應) (0 位負責人)Python (1,135 個分叉)batch import
good first issuelang: c++nice new thing ☺

倉庫指標

星標
 (12,130 顆星)
PR 合併指標
 (平均合併 9天 23小時) (30 天內合併 1 個 PR)

描述

Required Skills: C++

Difficulty: Easy

We should add additional math operations to our fixed-point implementation, so that all calculations can be done purely deterministic. The fpm library already has these operations and could be used as an inspiration.

Important here: These operations must not use any floating point arithmetic for the calculation. They must receive fixed-point values as input and must also return a fixed-point value. This means std library calculations should not be used for solving this issue.

Interesting for us:

  • sqrt
  • min
  • max
  • abs
  • hypot
  • atan2

Nice to have:

  • sin
  • cos
  • tan
  • pow
  • log

Further Reading

貢獻者指南