From: Stephan Rose <kermos@so...>  20060702 00:36:32

*Smack forehead*... Of course...man I feel stupid now =) Thanks very much!!! Stephan Original Message From: gdalgorithmslistbounces@... [mailto:gdalgorithmslistbounces@...] On Behalf Of Brian Osman Sent: Sunday, July 02, 2006 02:31 To: Game Development Algorithms Subject: Re: [Algorithms] Distance formula problem Your units are wrong. When you multiply two values that have the unit 'mm', the result is no longer a measure of 'mm'. It's a measure of 'mm^2'. Likewise for mil. And of course, 100 mil^2 == 0.064516 mm^2 Brian  Original Message  From: "Stephan Rose" <kermos@...> To: "'Game Development Algorithms'" <gdalgorithmslist@...> Sent: Saturday, July 01, 2006 6:48 PM Subject: [Algorithms] Distance formula problem >I am having a weird problem with my distance formula, maybe someone here >has > an idea! > > My math system is capable of doing math between various units. Mil, inch, > mm, cm, etc. It automatically converts operations to matching units and > then > performs the operation and so far this has been working out great. > > But today I ran into a rather interesting problem. > > Just taking the first half of the distance formula (x1x2)*(x1x2) > > Plug in test millimeter values: > > (0.254 mm  0)*(0.254 mm  0) = 0.064516 mm or 2.54 mil > > So far...so good. > > Now, 0.254 mm = 10 mil > > So plug in 10 mil into the same equation: > > (10 mil  0)*(10 mil 0) = 100 mil = 2.54 mm > > 2.54 mm != 0.064516 mm.... > > Even though 10 mil = 0.254 mm, plugging the other value into the same > formula yields a different result. This is extremely bad. > > Anyone have any suggestions what I could do about this? > > Thanks! > > Stephan Rose > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with preintegrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.asus.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > GDAlgorithmslist mailing list > GDAlgorithmslist@... > https://lists.sourceforge.net/lists/listinfo/gdalgorithmslist > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=6188 > > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with preintegrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.asus.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ GDAlgorithmslist mailing list GDAlgorithmslist@... https://lists.sourceforge.net/lists/listinfo/gdalgorithmslist Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=6188 