class Geodesics::Radian

Public Instance Methods

==(other) click to toggle source
Calls superclass method Geodesics::Point#==
# File lib/geodesics/point.rb, line 33
def ==(other)
  other.is_a?(Degree) ? super(other.to_radian) : super
end
to_degree() click to toggle source
# File lib/geodesics/point.rb, line 29
def to_degree
  Degree.new(@latitude * DEGREE, @longitude * DEGREE)
end