Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Shopping at the store helps maintain the site. Thank you.
Learning Math Online
Sites for teachers
Sites for parents
Terms of use
Awards
Interactive Activities

CTK Exchange
CTK Wiki Math
CTK Insights - a blog
Math Help

III Millennium Olympiad

Games & Puzzles
What Is What
Arithmetic
Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Stories for Young
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Sites for parents

Education & Parenting

Manifesto  |  Bookstore  |  Contents  |  Amazon store  |  Term index  |  What changed?  |  Contact  |  Recommend
RSS Feed: Recent changes at CTK

Subject: Re: Minimum distance between objects in 2D
Date: Tue, 13 Jan 1998 23:50:39 -0500
From: Alex Bogomolny

Dear Ad:

I am not aware of a book that evaluates distance for all the possible combinations of your shapes. But the task seems pretty simple.

I believe you can easily establish all the distances from a few formulas:

  1. Distance between two points
  2. Distance between a straight line and a point
  3. Distance between a circle and a point
  4. Distance between a circle and a straight line.

Examples (assuming the shapes do not intersect):

  1. Distance between two rectangles is the shortest distance between their vertices.
  2. Distance between an arc and a square is the shortest distance between the corresponding circle and vertices of the square and the endpoints of the arc and the vertices.

In the chapter of his book "Algorithms" devoted to Geometric algorithms, Robert Sedgewick gives a natural advice at how to sort a set of points in search of the minimal pairwise distance. Since your problem is ultimately reducible to this one, I would consider a question of sorting your points before applying the formulas.

Best regards,
Alexander Bogomolny

 

 

Copyright © 1996-2010 Alexander Bogomolny

35698638Page copy protected against web site content infringement by Copyscape

Search:
Keywords:

Google
Web CTK