Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.67 KB

File metadata and controls

42 lines (30 loc) · 1.67 KB

Game math library for Firefly Go SDK

NO AI Go Reference REUSE status

Complementary library to firefly-go and tinymath containing math utilities not found in the other packages.

Contains tools like ffrand, a reimplementation of the Go math/rand that is built upon the firefly.GetRandom() function instead.

The ffmath package contains utility functions, and are using generics extensively. Mostly as an experiment on generics usage, and because it's fun :) I have compared the compiled output with non-generic variants to confirm that the generic ones does not cause any regressions, even though they use quirky hacks like switch x := any(a).(type)

Installation

go get github.com/applejag/firefly-go-math

License

This project conforms to the REUSE standard. Different parts of the code base use different licenses.

In general: