refacto & cleanup of toplevel functions, use @p42/p42Modules, test microframework
This commit is contained in:
@@ -19,7 +19,7 @@ export function positionAt(agent, t) {
|
||||
})
|
||||
}
|
||||
|
||||
function distanceBetween(agentA, agentB, t) {
|
||||
export function distanceBetween(agentA, agentB, t) {
|
||||
const a = positionAt(agentA, t)
|
||||
const b = positionAt(agentB, t)
|
||||
const dx = a.x - b.x
|
||||
|
||||
Reference in New Issue
Block a user