Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!hp48sx From: hp48sx@wuarchive.wustl.edu (HP48SX Archive Maintainer) Newsgroups: comp.sys.mac.games Subject: Hex distances Message-ID: <1990Nov17.111429.6250@wuarchive.wustl.edu> Date: 17 Nov 90 11:14:29 GMT Organization: Washington University in Saint Louis, MO Lines: 20 I have just been doing a little symbolic math to use in calculating distances on a hex map. I am not sure if I completely understood the question, but if you want the distance from the center of one hex to the center of another, and all you know is how many hexes forward and to the side a piece is moved then it is a very simple problem. Say you move forward a hexes, and then turns left (this is a 60 degree turn) and moves further b hexes. The total distance from the center of the start hedx to the center of the end hex is : sqrt( (a+b/2)^2 + (b*sin(60 degrees))^2 ) and a acceptable approximiation for sin(60 degrees) is 181/209. -- ******************************************************* Povl H. Pedersen hp48sx@wuarchive.wustl.edu HP48sx archive maintainer