Skip to content

better mathutil because who doesnt like maths#913

Open
HeroEyad wants to merge 1 commit intoCodenameCrew:mainfrom
HeroEyad:main
Open

better mathutil because who doesnt like maths#913
HeroEyad wants to merge 1 commit intoCodenameCrew:mainfrom
HeroEyad:main

Conversation

@HeroEyad
Copy link
Member

  • Added EULER constant: Euler's number ($e \approx 2.718$) for exponential math.
  • Added smoothStep(edge0, edge1, x): It's useful for smooth interpolation with ease in and ease out, it's commonly used in shaders and animations.
  • Added inverseLerp(a, b, v): The reverse of lerp (ofc..) returns the percentage (0.0 to 1.0) of where a value sits within a given range. (this isn't fpsLerp btw)
  • Added fract(v): returns the fractional/decimal part of a float. Incredibly useful for wrapping timers or normalized values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant