I'm trying to understand pure functions and was wondering if this would qualify. As an example, pretend you have a code like this:
Player.DistanceToEnemy = DistanceBetween(player, enemy);
Enemy.DistanceToPlayer = DistanceBetween(player, enemy);
Is my understanding correct that the DistanceBetween function can not be a pure function because the player and enemy positions change over time, even if it's in another part of the code?