Module: GeoPoint::Calc::Intersection

Defined in:
lib/geo_point/calc.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.intersection_point(p1, brng1, p2, brng2) ⇒ Object

see(#intersection)



31
32
33
# File 'lib/geo_point/calc.rb', line 31

def self.intersection_point p1, brng1, p2, brng2
  GeoPoint.new GeoCalc::Intersection.intersection(p1, brng1, p2, brng2).to_coords
end

Instance Method Details

#intersection_point(brng1, p2, brng2) ⇒ Object

see(#intersection)



37
38
39
# File 'lib/geo_point/calc.rb', line 37

def intersection_point brng1, p2, brng2
  GeoPoint.new GeoCalc::Intersection.intersection(self, brng1, p2, brng2).to_coords
end