|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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?
|
|
#2
|
|||
|
|||
|
Quote:
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Game Development > Minimum distance in space |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|