Re: Distance point <=> straight line in space
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Thu, 31 Jul 2008 12:16:12 +0100
pjb@xxxxxxxxxxxxxxxxx (Pascal J. Bourguignon) writes:
Ben Bacarisse <ben.usenet@xxxxxxxxx> writes:
If there is any reason to transform your co-ordinate system, you might
want to shift and rotate the world so that p1 and p2 are on the z-axis
(say). Then all you distances are 2D from the origin. This feels
more expensive unless there is some other payoff to changing the
co-ordinate system.
Yes, you can save computing the z coordinate which doesn't matter for
the distance to the z axis.
It seemed a close call (the wrong way) but I did not add up all the
operations like we both did for the other methods. Have you counted
it and found it cheaper?
--
Ben.
.
- References:
- Distance point <=> straight line in space
- From: Daniel Kraft
- Re: Distance point <=> straight line in space
- From: Ben Bacarisse
- Re: Distance point <=> straight line in space
- From: Pascal J. Bourguignon
- Distance point <=> straight line in space
- Prev by Date: Re: Distance point <=> straight line in space
- Next by Date: Re: Distance point <=> straight line in space
- Previous by thread: Re: Distance point <=> straight line in space
- Next by thread: Re: Distance point <=> straight line in space
- Index(es):
Relevant Pages
|