Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently I have a plane with square tiling. It pretty trivial to get point on plane mapped to vertex of square tiling: plane point (x; y) -> vertex of square tiling (x div A; y div A). How to get same, but for Triangular tiling?

This is important! As you can see, there may be many (up to 4) closest points in square tiling, but by using quotient I map center of square just to 1 point, not four.

share|cite|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.