mirror of
https://github.com/Sheldan/canvas.git
synced 2026-03-04 07:33:42 +00:00
bubbles: added
This commit is contained in:
@@ -142,3 +142,7 @@ export function angleBetweenTwoVectors(vectorA, vectorB){
|
||||
export function dotProduct(vector1, vector2) {
|
||||
return vector1.x * vector2.x + vector1.y * vector2.y;
|
||||
}
|
||||
|
||||
export function randomInteger(n){
|
||||
return (Math.random() * n) << 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user