SunQuest
           Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 18th, 2007, 12:33 PM
Protected Protected is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Location: Portugal
Posts: 78 Protected User rank is Sergeant (500 - 2000 Reputation Level)Protected User rank is Sergeant (500 - 2000 Reputation Level)Protected User rank is Sergeant (500 - 2000 Reputation Level)Protected User rank is Sergeant (500 - 2000 Reputation Level)Protected User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 17 h 35 m 42 sec
Reputation Power: 17
Minimum distance in space

Sorry if this is really basic (it certainly does sound really basic to me), but I'm quite bad at maths: Given a plan with equation Ax + By + Cz + D = 0 and a point (x0, y0, z0), how do I find the minimum distance between both?

Reply With Quote
  #2  
Old October 18th, 2007, 04:32 PM
0CIRCLE0 0CIRCLE0 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 59 0CIRCLE0 User rank is Second Lieutenant (5000 - 10000 Reputation Level)0CIRCLE0 User rank is Second Lieutenant (5000 - 10000 Reputation Level)0CIRCLE0 User rank is Second Lieutenant (5000 - 10000 Reputation Level)0CIRCLE0 User rank is Second Lieutenant (5000 - 10000 Reputation Level)0CIRCLE0 User rank is Second Lieutenant (5000 - 10000 Reputation Level)0CIRCLE0 User rank is Second Lieutenant (5000 - 10000 Reputation Level)0CIRCLE0 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 18 h 48 m 59 sec
Reputation Power: 84
Quote:
Sorry if this is really basic (it certainly does sound really basic to me), but I'm quite bad at maths: Given a plan with equation Ax + By + Cz + D = 0 and a point (x0, y0, z0), how do I find the minimum distance between both?


dx = Ax-x0
dy = By-y0
dz = Cz-z0

distance = sqrt(dx*dx+dy*dy+dz*dz)

I think that is what you are saying.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Minimum distance in space


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway