lib/quake.rb
def compute_position
    # The negative and the ninety are the fudge to compensate for our map.
    lat = @latitude_radians = radians(-@latitude)
    long = @longitude_radians = radians(@longitude + 90)
    radius = $app.globe.diameter / 2.0 - 23
    @x = radius * cos(lat) * sin(long)
    @y = radius * sin(lat)
    @z = radius * cos(lat) * cos(long)
  end
# Compute the 3D Cartesian coordinates of the earthquake's postition as 
# plotted on the globe.
Compute the 3D Cartesian coordinates of the earthquake's postition as
plotted on the globe.
Compute the 3D Cartesian coordinates of the earthquake ' s postition as plotted on the globe .
def compute_position
    lat = @latitude_radians = radians(-@latitude)
    long = @longitude_radians = radians(@longitude + 90)
    radius = $app.globe.diameter / 2.0 - 23
    @x = radius * cos(lat) * sin(long)
    @y = radius * sin(lat)
    @z = radius * cos(lat) * cos(long)
  end
def compute_position lat = @latitude_radians = radians ( - @latitude ) long = @longitude_radians = radians ( @longitude + 90 ) radius = $app . globe . diameter / 2.0 - 23 @x = radius * cos ( lat ) * sin ( long ) @y = radius * sin ( lat ) @z = radius * cos ( lat ) * cos ( long ) end
Compute the 3D Cartesian coordinates of the earthquake's postition as
plotted on the globe.
Compute the 3D Cartesian coordinates of the earthquake ' s postition as plotted on the globe .
# The negative and the ninety are the fudge to compensate for our map.