Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Re: Altitude of...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 17 Topic 581 of 680
Post > Topic >>

Re: Altitude of a point in a triangle

by Erik Max Francis <max@[EMAIL PROTECTED] > Sep 14, 2006 at 01:24 PM

Miss Elaine Eos wrote:

> I have a triangle that represents a bit of terrain mesh -- that is, the 
> triangle is NOT vertically aligned.  It's made of points A, B, C, each 
> point having an XYZ (so there's Ax, Ay, Az...)  I have a 4th point (P), 
> that I've already determined has X/Z coordinates inside the triangle -- 
> that is, if I set everything's Y to 0, T(ABC) contains P.  I can get the

> distance2d between points, and I know that what I want to do to get the 
> Y coordinate of P is some sort of averaging, but I can't seem to quite 
> figure out what values to average, how.

It's not clear to me from your description what you're looking for. 
_Altitude_ is probably not the right word based on your description, but 
your description isn't precise enough to know what you want.  Are you 
just saying you want the y-coordinate of your fourth point P to be the 
average of the y-coordinates of points A, B, and C?  If so, just average 
them:  p_y = (a_y + b_y + c_y)/3.

If you mean something else, you're going to have to define it more
clearly.

-- 
Erik Max Francis && max@[EMAIL PROTECTED]
 && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
   It is much safer to obey than to rule.
    -- Thomas a Kempis
 




 17 Posts in Topic:
Altitude of a point in a triangle
Miss Elaine Eos <Misc@  2006-09-14 17:10:54 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-14 13:24:04 
Re: Altitude of a point in a triangle
Miss Elaine Eos <Misc@  2006-09-14 23:04:33 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-14 17:01:36 
Re: Altitude of a point in a triangle
"Alfie [UK]" &l  2006-09-15 02:04:43 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-15 13:49:39 
Re: Altitude of a point in a triangle
Miss Elaine Eos <Misc@  2006-09-15 01:12:41 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-15 13:49:09 
Re: Altitude of a point in a triangle
Tom Plunket <gamedev@[  2006-09-21 16:26:51 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-22 15:22:10 
Re: Altitude of a point in a triangle
Tom Plunket <gamedev@[  2006-09-23 19:12:17 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-23 19:22:19 
Re: Altitude of a point in a triangle
Tom Plunket <gamedev@[  2006-09-24 12:54:02 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-24 21:33:53 
Re: Altitude of a point in a triangle
Tom Plunket <gamedev@[  2006-09-25 14:28:47 
Re: Altitude of a point in a triangle
Erik Max Francis <max@  2006-09-25 15:58:10 
Re: Altitude of a point in a triangle
Miss Elaine Eos <Misc@  2006-09-15 01:04:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 8:46:18 CDT 2008.