HackerN64 / HackerN64/HackerSM64

Add More Math Util Functions

Open
#360 8 comments 0 reactions 0 assignees View on GitHub
enhancement medium priority
Dominant language
C
Stars
529
Forks
209
Avg merge
1d 12h
Merged PRs (30d)
1

Description

Notable function additions:
----
- `u32 random_u32(void)`
- `f32 pow(f32 num, f32 exponent)`
- `f32 log(f32 num, f32 base)`
- SmoothDamp
- Remap
- Lerp
- LerpSmooth
- InverseLerp
- Vector versions of those
- Any other potentially useful functions that are currently missing

Maybe also consider adding inline functions for stuff like `clamp`, `sign`, `min`, `max`, etc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.