Distance between two points in polar coordinate system.

  • Thread starter sotnet
  • Start date
  • #1
sotnet
3
0
Guys,

Any ideas on how to calculate distance between two points in Polar coordinate system without converting their coordinates to Cartesian?

Ps. I know that if I converted from Polar (r, t) to Cartesian (x, y) by x = r.cos(t), y = r.sin(t), then the distance between two points would be d = sqrt((x1 - x2)^2 + (y1 - y2)^2).


Thanks,
Steve
 

Answers and Replies

  • #2
lzkelley
277
2
You use the law of cosines.
Construct a triangle with vertices at the origin, and the two points.
Its a cool trick, but makes for a huge pain in the ass for calculating inverse square laws etc. in polar/spherical.

I can elaborate if the setup doesn't make sense.
 

Suggested for: Distance between two points in polar coordinate system.

  • Last Post
Replies
9
Views
1K
  • Last Post
Replies
1
Views
534
Replies
2
Views
419
Replies
2
Views
700
  • Last Post
Replies
10
Views
821
  • Last Post
Replies
0
Views
462
Replies
9
Views
557
Replies
3
Views
940
Replies
7
Views
497
  • Last Post
Replies
5
Views
1K
Top