I'm a little puzzled by the euclideanModulo function in threejs's mathutils. I understand the concept of the modulo operator, but the euclideanModulo function seems to work differently.
( ( n % m ) + m ) % m
I tried researching the meaning of "Euclidean," but all I found was a definition related to Euclid's geometry. This didn't really help me understand the function.
Euclidean: relating to or denoting the system of geometry based on the work of Euclid and corresponding to the geometry of ordinary experience.
Can someone clarify this for me? I'm struggling to find a more in-depth explanation anywhere.