Crate miscmath

Source
Expand description

§Miscmath

miscmath is a collection of general math functions and linear algebra structures like vectors and matrices.

Modules§

linear
prelude

Structs§

Perlin
Perlin Noise struct

Constants§

DEFAULT_NOISE_SEED

Functions§

constrain
Examples
factorial
Calculates and returns the factorial of the integer entered
fibonacci
Prints out the fibonacci sequence up to the number of terms entered
map
Takes a value within a given range and converts it to an equivalent value in another range
random
Generates a random number in the range provided