🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1472

generating hexagons

#1472
From: Kenneth Jamieson
Date: Thu, 06 Jun 1991 03:45
23 lines
1285 bytes
			   Hi there folks!

	I need to put up a map for a game I am writing, and have a few
questions concerning hexagons.

	1) What is the best algorithm to draw a hexagonal grid with ?

	2) Given an x/y point, how can I tell what hexagon it is in ?


	
	Thanks!

-- 
========[ Xanadu Enterprises Inc. Amiga & Unix Software Development]=======
= "I know how you feel, you don't know if you want to hit me or kiss me - =
=  --- I get a lot of that."  Madonna as Breathless Mahoney (Dick Tracy)  =
=========== Ken Jamieson: uunet!tronsbox.xei.com!tron1  ===================
=     NONE of the opinions represented here are endorsed by anybody.      =
=  Unix is (tm) AT&T, Amiga is (tm) Commodore Business Machines, and all  =
=  characters from Dick Tracy are (tm) Warner Bros.                       =
===========================================================================
Technical Details
Message-ID: <1659@tronsbox.xei.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!tronsbox!tron1

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!tronsbox!tron1
From: tron1@tronsbox.xei.com (Kenneth Jamieson)
Newsgroups: rec.games.programmer,comp.graphics
Subject: generating hexagons
Message-ID: <1659@tronsbox.xei.com>
Date: 6 Jun 91 03:45:15 GMT
Followup-To: rec.games.programmer
Organization: Romantic Encounters BBS
Lines: 23