openage
openage copied to clipboard
Pure fixed-point math functions
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.
Interesting for us:
- [ ] sqrt
- [x] min
- [x] max
- [x] abs
- [x] hypot
- [ ] atan2
Nice to have:
- [ ] sin
- [ ] cos
- [ ] tan
- [ ] pow
- [ ] log
Further Reading
@mingjuu You can :)
I'll assign you right now and if you have any questions, feel free to ask here or in chat.
Hello, I am new to the project and wish I could join you. Can you assign this issue to me so that I can start from here?
@AyiStar sure :)
@heinezen Thank! I will touch you if I have any questions.
Hello,
Is there anything left to do here that I can contribute to?
@adamresemius Yes, the unticked boxes in the issue description is what's not implemented at the moment.
I think I know how to implement the other functions in fpm. I have pow already on mine.
Hey, I'm a beginner and could try my hand at implementing sqrt (and possibly the others after) if it isn't being worked on right now
@firednerve You are welcome to go for it :)
Thanks! I’ll ask if I have any questions.