The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Geodesics (kind of).. by Unicorn2003-04-24 00:51:10
  hhm.. by Unicorn 2003-04-24 18:11:41
Figure lat1 and lat2 as you would with an Equator-centered circle. If a
calculated latitude happens to exceed 90 degrees, then this doesn't
really apply because then your circle encloses a pole and then you can't
inscribe the circle in any "square" (it's really more like a trapezoid
in the general case) of latitude and longitude lines. I'll assume here
that the circle does not in fact enclose a pole.

Now for lon1 and lon2. Draw a spherical triangle with one vertex C at
the center of the circle, a second vertex P at the North or Sout Pole,
and a third vertex X on your circle, with X so placed that PX is tangent
to the circle. Then triangle PXC is a RIGHT triangle with the right
angle at X. The arc measures of the hypoteneuse (PC) and the leg PX are
known from the construction, and the Spherical Law of Sines gives
immediately:

sin(angle CPX) =
[sin(angle PXC)] * sin(arc XC)/sin(arc PX)

where the term is brackets is 1. To decide between two supplementary
solutions, angle CPX is taken to be acute. From angle CPX we can get
each of the bounding longitudes, adding and subtracting that angle to
the given longitude at C. Be sure to make proper provisions for when
you straddle the 180-degree meridian
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)