Re: How to compute triangle base/altitude intersection
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 18:21:00 +0000
Balabek@xxxxxxxxx said:
Hi,
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.
Given coordinates of points A, B, and lengths of line segments AC, BC,
how would you calculate coordinates of point D?
Draw a circle of diameter AC about A. Draw a circle of diameter BC about B.
If the circles only touch each other tangentially, the triangle is actually
degenerate (it's just a line), and the point where they touch is D. If they
don't touch at all, there is no solution. Otherwise, they intersect at two
points, C1 and C2, and the coordinates of D are at
((C1.x + C2.x) / 2, (C1.y + C2.y) / 2)
I do have a way to compute it, but I just can't shake away this feeling
that it is not very efficient.
Measure. If your existing solution is fast *enough*, leave well alone.
--
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)
.
- Follow-Ups:
- Re: How to compute triangle base/altitude intersection
- From: goose
- Re: How to compute triangle base/altitude intersection
- From: Richard Heathfield
- Re: How to compute triangle base/altitude intersection
- References:
- How to compute triangle base/altitude intersection
- From: Balabek
- How to compute triangle base/altitude intersection
- Prev by Date: Re: How to compute triangle base/altitude intersection
- Next by Date: Re: How to compute triangle base/altitude intersection
- Previous by thread: Re: How to compute triangle base/altitude intersection
- Next by thread: Re: How to compute triangle base/altitude intersection
- Index(es):
Relevant Pages
|