I haven't plotted this so apologies in advance if I'm wrong, but given: 
       __________   ________
     /                    \                |
    /                      \               |
   /                        \              | h
  /              .x,y        \  _____|_
  \                            /
   \                         /
     \                      /
      \__________/

  |_______________|
              3h
the 6 corners should be:

(x+h), (y+h)
(x+h), (y-h)
(x-h), (y+h)
(x-h), (y-h)
(x+1.5*h), (y)
(x-1.5*h), (y)

In British National Grid its easy if h is given in metres, you may need to do some 
conversions depending on your coord sys

hth

Mike

>>> Colin Henderson <[EMAIL PROTECTED]> 09/02/2001 16:17:37 >>>
Does anyone know how I can make a mapbasic program to draw hexagons? I have
been trying in vain to calculate angles etc.  The idea is that the user will
click a location on a map and the program will ask for a cell size, then
draw a hexagon with a centroid at the place where the user clicked.  I can
get everything to work, except the drawing of a hexagon!!! Any help anyone
can give would be greatly appreciated!

--
Regards
Colin Henderson
Associate GIS Analyst
Wireless Facilities, Inc.
Office: +44 1483 400937
Mobile: +44 7887638771
[EMAIL PROTECTED] 



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.



********************************************************************************
Note: We are a Microsoft Office site.  Our base version is 4.3.  Please make sure
that files you send can be read in this format.

Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and/or publication of this e-mail is strictly
prohibited save unless expressly authorised by the sender.

The information contained in this message is intended for the named
recipients only. It may contain privileged and confidential information and if you
are not the addressee or the person responsible for delivering this to the addressee,
you may not copy, distribute or take action in reliance on it.
If you have received this message in error, please notify the sender(s)
immediately by telephone. Please also destroy and delete as soon as possible
the message from your computer.
*****************************************************************************************************************************************************



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to