I am struggling to get a distance metric that works on a plane that repeats/tiles itself similar to the way a walking on a torus works. An analogy to the Euclidean distance between 2 points but on a torus.
2026-04-06 18:15:08.1775499308
Wrap Around/Toroidal? Distance
435 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in DIFFERENTIAL-GEOMETRY
- Smooth Principal Bundle from continuous transition functions?
- Compute Thom and Euler class
- Holonomy bundle is a covering space
- Alternative definition for characteristic foliation of a surface
- Studying regular space curves when restricted to two differentiable functions
- What kind of curvature does a cylinder have?
- A new type of curvature multivector for surfaces?
- Regular surfaces with boundary and $C^1$ domains
- Show that two isometries induce the same linear mapping
- geodesic of infinite length without self-intersections
Related Questions in GEOMETRIC-TOPOLOGY
- Finite covers of handlebodies?
- CW complexes are compactly generated
- Constructing a fat Cantor Set with certain property
- Homologically zero circles in smooth manifolds
- Labeled graphs with unimodular adjacency matrix
- Pseudoisotopy between nonisotopic maps
- A topological question about loops and fixed points
- "Continuity" of volume function on hyperbolic tetrahedra
- Example of path connected metric space whose hyperspace with Vietoris topology is not path connected?
- What is the pushout of $D^n \longleftarrow S^{n-1} \longrightarrow D^n$?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Let's say the plane ($\mathbb{R}^2$) is tiled by $1\times 1$ squares, so if you have two points $(x_1,x_2)$ and $(y_1,y_2)$, their "torus distance" will be the same as the torus distance between $(x_1,x_2)$ and $(y_1+n,y_2+m)$ where $n,m$ are integers.
Let's use $\operatorname{frac}(x)$ to denote the fractional part of $x$ in the sense of the difference between $x$ and $x$ rounded down. So for example, $\operatorname{frac}(4.2)=0.2$ and $\operatorname{frac}(-4.2)=0.8$. Something we know is that the distance metric should satisfy $$d((x_1,x_2),(y_1,y_2))=d((\operatorname{frac}(x_1),\operatorname{frac}(x_2)),(\operatorname{frac}(y_1),\operatorname{frac}(y_2)))$$ since this represents shifting the two points to lie in the unit square $[0,1)\times[0,1)$. Another thing we know is that the distance metric should satisfy $$d((x_1,x_2),(y_1,y_2))=d((x_1-y_1,x_2-y_2),(0,0))$$ since translating the plane shouldn't change the metric. Putting these together, we have $$d((x_1,x_2),(y_1,y_2))=d((\operatorname{frac}(x_1-y_1),\operatorname{frac}(x_2-y_2)),(0,0)).$$ What remains is to figure out what $d((x,y),(0,0))$ is when $0\leq x<1$ and $0\leq y<1$. The nearest translates of $(0,0)$ to $(x,y)$ are $(0,0)$, $(0,1)$, $(1,0)$, and $(1,1)$, which are the four corners of the unit square. So, we have $$d((x,y),(0,0)) = \min\left\{\sqrt{x^2+y^2},\sqrt{x^2+(y-1)^2},\sqrt{(x-1)^2+y^2},\sqrt{(x-1)^2+(y-1)^2}\right\}$$ which can be simplified to $$d((x,y),(0,0)) = \sqrt{\left(\min\{x,1-x\}\right)^2 +\left(\min\{ y,1- y\}\right)^2 }.$$
Therefore, the full torus metric can be written as $$d((x_1,x_2),(y_1,y_2)) = \sqrt{\left(\min\{\operatorname{frac}(x_1-y_1), 1-\operatorname{frac}(x_1-y_1)\}\right)^2 +\left(\min\{\operatorname{frac}(x_2-y_2),1- \operatorname{frac}(x_2-y_2)\}\right)^2 }.$$