Expand description
utils module provides some useful helper functions of random generation and gradient scale
Functionsยง
- distance_
squared - Return squared distance between to points
- explosion_
gradient_ 1 - A sample function defining the gradient of the
Particle - explosion_
gradient_ 2 - A sample function defining the gradient of the
Particle - explosion_
gradient_ 3 - A sample function defining the gradient of the
Particle - gen_
points_ arc - Generate random
Vec2on an arc - gen_
points_ circle - Generate random
Vec2within a circle range - gen_
points_ circle_ normal - Generate random
Vec2within a circle range with normal distribution - gen_
points_ circle_ normal_ dev - Generate random
Vec2within a circle range with normal distribution - gen_
points_ fan - Generate random
Vec2within a fan-shape range - gen_
points_ on_ circle - Generate random
Vec2on a circle - linear_
gradient_ 1 - A sample function defining the gradient of the
Particle - round
- Round a
Vec2from(f32, f32)to(isize, isize)