swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Discrete 2D space with Hex lattice?


From: cgl
Subject: Re: Discrete 2D space with Hex lattice?
Date: Mon, 27 Jan 1997 12:48:14 -0700

Barry..

  A full hex-space would be useful, but you can hack one on
a 2D rectangular lattice as a start in a couple of different
ways...

1) You can get a "distorted" hex lattice by accessing rectangular
    lattice points as follows:

       - - - - - - - - - -
       - - - - - - * * - -
       - - - - - * * * - -
       - - - - - * * - - -
       - - - - - - - - - -

2) Less efficiently, you can use only even or odd sites on 
   even and odd rows, as follows:

       - - - - - - - - - -
       - - - * - * - - - -
       - - * - * - * - - -
       - - - * - * - - - -
       - - - - - - - - - -

    Even less efficiently, you can skip every other row in
    the scheme above, so that you don't get a squashed
    hexagon....

Either of these can be implemented simply via offset vectors.

You might want to try things out using such an embedding in
order to determine if it is worth it to you to do a full
hex-space. Of course, it is worth it to *us* if you do
a full hex-space, so I certainly don't want to discourage you!

Cheers!

Chris Langton


reply via email to

[Prev in Thread] Current Thread [Next in Thread]