Re: How to compute triangle base/altitude intersection



Pascal Bourguignon said:

"Arthur J. O'Dwyer" <ajonospam@xxxxxxxxxxxxxx> writes:

On Wed, 30 Aug 2006, Pascal Bourguignon wrote:
"Phlip" <phlipcpp@xxxxxxxxx> writes:
Balabek wrote:

Hope you can help me solve this problem.

Suppose I have a triange ABC. I have altitude passing through vertice
C, and it intersects line AB or extension of line AB at point D.

How do you define "altitude"?

An altitude of a triangle passes through one of the vertices and
is perpendicular to the opposite side. I don't know what the word for
"altitude" is in French, but I would expect it would be a cognate to
the English word "altitude".

Oh, it's called "la hauteur du triangle" (height).
"Altitude" in French is usually absolute, not relative.

Ok, so you have the normal problem, not a strange variation.

There's no difficulty in it. As have been explained, to find the
position of C geometricaly you just draw two circles centered on A and
B of the given radius, and find their intersections. When you draw
the line CC', the intersection of this line with AB is D.

No, I thought that too, but it's wrong, or rather it's only true if ABC is
isosceles, with AC and BC being equal in length. Consider this
counter-example:

C1
+
+ + +
+ + +
A + D+ + B
+++++++++++++++++++++++++++++++++
+ + +
+ + +
+ + +
+
C2

Clearly neither C1D nor C2D is perpendicular to AB. What we really want is
this:


C1
+
+ | +
+ | +
A + D1 | + B
+++++++++++++++++++++++++++++++++
+ | D2 +
+ | +
+ | +
+
C2

I have explained how to achieve it elsethread.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages

  • Re: How to compute triangle base/altitude intersection
    ... I have altitude passing through vertice ... and it intersects line AB or extension of line AB at point D. ... it's called "la hauteur du triangle". ...
    (comp.programming)
  • IMO 2004
    ... ABC is acute angle triangle with ABAC. ... intersects the lines AB and AC respectively at M and N. O is the ... Define a "hook" to be a figure made up of six unit squares as shown ...
    (sci.math)
  • Re: Altitude of a point in a triangle
    ... XZ grid, with their corners at various "altitudes". ... average the 4th point ANYWHERE within the triangle. ... The altitude of a triangle means the distance between one of its points ... the triangles are laid out on an XZ grid -- like XY graph paper ...
    (comp.games.development.programming.algorithms)
  • Re: Altitude of a point in a triangle
    ... The thing I'm wrestling with is how to average the 4th point ANYWHERE within the triangle. ... The altitude of a triangle means the distance between one of its points and the line defined by its other two points. ... In other words, if you change P's y-coordinate so that it is contained within that plane, what would that y-coordinate be? ...
    (comp.games.development.programming.algorithms)
  • Re: 2D circle-triangle intersection test
    ... > could someone point me in the direction of a fast circle-triangle ... check if the circle's center is inside the triangle. ... the center is inside the triangle, be safe that the center intersects the ... then the circle does not intersect the sphere. ...
    (comp.graphics.algorithms)