//
pkg.gl
Category
github.com/OutOfStack/boids
vector
package
0.0.0-20240720064834-79a330fbca25
Repository:
https://github.com/outofstack/boids.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
1
Files
19 SLOC
#
Functions
AddV
AddV adds value to X and Y of the given vector.
Distance
Distance calculates the Euclidean distance between two vectors.
DivisionV
DivisionV divides X and Y of vector by a specified divisor.
Limit
Limit restricts vector's X and Y to range [lower, upper].