The Geek Forum

  • April 27, 2024, 12:31:40 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Due to the prolific nature of these forums, poster aggression is advised.

*

Recent Forum Posts

Shout Box

Members
Stats
  • Total Posts: 129551
  • Total Topics: 7148
  • Online Today: 179
  • Online Ever: 1013
  • (January 12, 2023, 01:18:11 AM)

Author Topic: Planes, Distances and nonzero origins  (Read 3178 times)

Probie

  • Professional Blogger
  • ***
  • Coolio Points: +223/-5
  • Offline Offline
  • Posts: 644
  • The natural nap catalyst
    • View Profile
    • SoggyBlog
Planes, Distances and nonzero origins
« on: March 26, 2009, 11:02:08 AM »

If I have a plane equation Ax + By + Cz + D = 0 where A B and C are the normal of the plane and D is the distance from the 0,0,0, and I also have the real origin of the object in a 3D world which is nonzero (say for example something like -150, -150, -150 or there abouts) then is it possible to work out the distance from the nonzero origin? And if so can anyone explain it to me.

I have a page of rearranged equations and frankly its melting my brain. I think what i need to do is quite simple

1. work out the closest point of the plane along the normal from the origin.

2. use the origin and the point on the normal to work out the length of the 3D hypotenuse.


Any help would be very greatly appriciated. Even if its just a site that explains it in idiot for me.

Thank you.

« Last Edit: March 26, 2009, 11:08:49 AM by Probie »
Logged
// ------- Probie ------- //
// ----------------------- //
// --- T3H GEEKERY --- //
// ----------------------- //
www.niccisixx.com - I can put this here, because I'm awesome.

ivan

  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +499/-50
  • Offline Offline
  • Posts: 4929
  • Not a Mod, nor a Rocker. A Mocker.
    • View Profile
Re: Planes, Distances and nonzero origins
« Reply #1 on: March 26, 2009, 11:09:35 AM »

This page over here has a point-to-plane formula (scroll down to "Distance of a Point to a Plane").

It's pretty gnarly.

Logged
"I TYPE 120 WORDS PER MINUTE, BUT IT'S IN MY OWN LANGUAGE!"  -Detta

xolik: WHERE IS OBAMA'S GIFT CERTIFICATE?
Demosthenes: Is that from the gifters movement?


Detta: Crappy old shorts and a tank top.  This is how I dress for work. Because my job is to get puked on.
Demosthenes: So is mine.  I work in IT.


bananaskittles: The world is 4chan and God is a troll.

Probie

  • Professional Blogger
  • ***
  • Coolio Points: +223/-5
  • Offline Offline
  • Posts: 644
  • The natural nap catalyst
    • View Profile
    • SoggyBlog
Re: Planes, Distances and nonzero origins
« Reply #2 on: March 26, 2009, 11:38:48 AM »


Cheers, I'll try and smush that together with the wolfram stuff. I'm definitely over complicating it.
Logged
// ------- Probie ------- //
// ----------------------- //
// --- T3H GEEKERY --- //
// ----------------------- //
www.niccisixx.com - I can put this here, because I'm awesome.

ivan

  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +499/-50
  • Offline Offline
  • Posts: 4929
  • Not a Mod, nor a Rocker. A Mocker.
    • View Profile
Re: Planes, Distances and nonzero origins
« Reply #3 on: March 26, 2009, 11:51:07 AM »

What the hell is a "unit normal"?

Whatever it is, it makes the formula a lot shorter.
Logged
"I TYPE 120 WORDS PER MINUTE, BUT IT'S IN MY OWN LANGUAGE!"  -Detta

xolik: WHERE IS OBAMA'S GIFT CERTIFICATE?
Demosthenes: Is that from the gifters movement?


Detta: Crappy old shorts and a tank top.  This is how I dress for work. Because my job is to get puked on.
Demosthenes: So is mine.  I work in IT.


bananaskittles: The world is 4chan and God is a troll.

Probie

  • Professional Blogger
  • ***
  • Coolio Points: +223/-5
  • Offline Offline
  • Posts: 644
  • The natural nap catalyst
    • View Profile
    • SoggyBlog
Re: Planes, Distances and nonzero origins
« Reply #4 on: March 26, 2009, 11:58:15 AM »

a unit normal is a vector of values with the magnitude of 1.

So you could have 15, 5, 10 and normal is it so that the values would be rally small and have a magnitude of 1.


Disclaimer: this could be worded completely wrong :P
« Last Edit: March 26, 2009, 12:01:51 PM by Probie »
Logged
// ------- Probie ------- //
// ----------------------- //
// --- T3H GEEKERY --- //
// ----------------------- //
www.niccisixx.com - I can put this here, because I'm awesome.

ivan

  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +499/-50
  • Offline Offline
  • Posts: 4929
  • Not a Mod, nor a Rocker. A Mocker.
    • View Profile
Re: Planes, Distances and nonzero origins
« Reply #5 on: March 26, 2009, 12:06:55 PM »

Well, if you can manage to deal only with unit normals, then your life will be easier.
Logged
"I TYPE 120 WORDS PER MINUTE, BUT IT'S IN MY OWN LANGUAGE!"  -Detta

xolik: WHERE IS OBAMA'S GIFT CERTIFICATE?
Demosthenes: Is that from the gifters movement?


Detta: Crappy old shorts and a tank top.  This is how I dress for work. Because my job is to get puked on.
Demosthenes: So is mine.  I work in IT.


bananaskittles: The world is 4chan and God is a troll.

Probie

  • Professional Blogger
  • ***
  • Coolio Points: +223/-5
  • Offline Offline
  • Posts: 644
  • The natural nap catalyst
    • View Profile
    • SoggyBlog
Re: Planes, Distances and nonzero origins
« Reply #6 on: March 26, 2009, 12:09:47 PM »


yeah I think what i need to do is project the origin into the plane and then work out the distance from there.
Logged
// ------- Probie ------- //
// ----------------------- //
// --- T3H GEEKERY --- //
// ----------------------- //
www.niccisixx.com - I can put this here, because I'm awesome.

Probie

  • Professional Blogger
  • ***
  • Coolio Points: +223/-5
  • Offline Offline
  • Posts: 644
  • The natural nap catalyst
    • View Profile
    • SoggyBlog
Re: Planes, Distances and nonzero origins
« Reply #7 on: March 26, 2009, 12:37:57 PM »


I think i am onto something. If i crack it I will post a write up in extreme idiot terms for anyone who is like me and needs cutting a break!
Logged
// ------- Probie ------- //
// ----------------------- //
// --- T3H GEEKERY --- //
// ----------------------- //
www.niccisixx.com - I can put this here, because I'm awesome.