class Geodesics::Point
Constants
- DEGREE
- RADIAN
Attributes
latitude[R]
longitude[R]
Public Class Methods
new(latitude, longitude)
click to toggle source
# File lib/geodesics/point.rb, line 10 def initialize(latitude, longitude) @latitude = latitude @longitude = longitude end
Public Instance Methods
==(other)
click to toggle source
# File lib/geodesics/point.rb, line 15 def ==(other) latitude == other.latitude && longitude == other.longitude end
to_degree()
click to toggle source
# File lib/geodesics/point.rb, line 23 def to_degree self end
to_radian()
click to toggle source
# File lib/geodesics/point.rb, line 19 def to_radian self end