Other C++ Code
This is a collection of miscellaneous C++ code. I believe they have Windows line endings.
Templated arrays with bounds checking:
Perlin and noise from 1D to 4D:
Simple Worley points from 1D to 4D:
- These just generate points in cells. They do not perform calculations with the distance to the nearest point(s).
The π (pi) constant and conversion functions for between degrees and radians:
- I use this to avoid name conflicts
- This stuff really should be added to the standard math library.
Convenience functions for random numbers:
- I suspect these have been superceded by the C++11
random library but I have not investigated it.
A cross-platform wrapper for time measurement system calls:
A class to efficiently concatenate many strings:
A templated class for a priority queue that supports efficiently changing the priorities on enqueued elements:
Back to resources page
Back to home page